I am more experienced in Linux/Unix than DOS, but what I want to do is to execute a code that expects to get additional input from the screen. In Unix, I would write:
executable_name << EOF
input1
input2
...
EOF
but DOS chokes on this (not too surprising. How do I do this with DOS?