To run a batch script from the CMD shell, save the file as plain ASCII text with the file extension .CMD, then from the command line, enter the name of the script and press return.
To run a batch file from within another batch file, use the CALL command, otherwise the first script will exit without performing any further commands.
It is also possible to run batch scripts with the old (Windows 95 style) .BAT extension, but be aware that these will set ERRORLEVEL differently.
To run a PowerShell script from the CMD shell:C:\> powershell -file "c:\batch\demo.ps1"
To run a VBScript from the CMD shell:C:\> cscript c:\batch\demo.vbs
“The method of the enterprising is to plan with audacity and execute with vigor” ~ John Christian Bovee
Run a script from PowerShell
Run a script from VBScript