in reply to Have trouble implementing a shell-alike script
Windows uses CRLF as line separator, but you're sending just LF. See Newline
P.S. and AFAIK you're right about Win32 console -- it is does not compatible with vt100