Another method is to pipe to the executable. This can be dangerous but it is possible. I would not do this with anything complicated or containing metacharacters. But simple programs can be piped.
C:\>echo print "hello world!"|perl
hello world!
--
flounder