in reply to Shelling a new process with console I/O in Windows
I think you forgot to tell us in detail what problems you're having. Please don't ask me to download your source, run it, and debug it all on my own in order to help you.
What happens when you run your script? How is that different from what you want to have happen?