To run a VB script called myscript.vbs from the command line:
C:\> cscript //nologo myscript.vbs
To run a VBScript from within another VBScript:
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "cscript c:\batch\demo.vbs"
To run a CMD batch file from VBScript:
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "c:\batch\test.cmd"
To run a PowerShell script from VBScript:
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "powershell -file ""c:\batch\demo.ps1"""
CSCRIPT - Run a VBScript / Windows Scripting Host (WSH) script.
Hybrid batch/VBScript
Run a script from PowerShell
Run a script from the CMD shell
“Those that set in motion the forces of evil cannot always control them afterwards” ~ Charles W. Chesnutt