From: gimme_this_gimme_that on
Well. If you have cygwin installed (freely available but the entire
distribution leaves a large footprint) - as of a few years ago -
cygwin comes with the UNIX command "script".

It captures all input and output to and from command line
instructions.

By default the filename is typescript.

If c:\WINDOWS\system32 in in your Windows PATH then you run a vbs
script

as either

script
cscript myscript.vbs

or

script
wscript myscript.vbs