You can run scripts from the command line using Cscript.exe. Launch CScript and use the name of the script file (and its path, if required) as a parameter.

cscript script.vbs

The windows script host displays the banner (you can hide the banner using //NOLOGO parameter) and then executes the script. You can find out the syntax by typing cscript at command line.

Launching a script file named, say, script.vbs, is equivalent to entering the following command in the Run dialog box

wscript script.vbs

The WScript host also defines several parameters that you can use to control how the script executes.