Do a keyword search on 'console' in this forum. There are a number of approaches covered, from the relatively trivial (leveraging the script host's ability to read and write STDIN and STDOUT) to the relatively complex, involving allocation of a console window, redirection of inherited redirection of STDIN and STDOUT, and self-patching the compiled EXE ...