IIRC interpreters can also read their programs from stdin. Try piping a script to bash and see if it works.
(Actually, this is how the `curl install.sh | bash` anti pattern works. )
(Actually, this is how the `curl install.sh | bash` anti pattern works. )