 <p>Yes, the Exec function seems to be broken when it comes to terminal output.</p> <p>I have been using a similar function <code>function ConsumeStd(e) {WScript.StdOut.Write(e.StdOut.ReadAll());WScript.StdErr.Write(e.StdErr.ReadAll());}</code> that I call in a loop similar to yours. Not sure if checking for EOF and reading line by line is better or worse.</p>