in reply to forcing STDIN with windows

Anonymous Monk,
Since I haven't used it, I can't give you working code, but I suspect what you want is Expect.

Cheers - L~R

Update: It appears that Win32 is only supported through Cygwin.