start cmd and run a file using batch script code example
Example: run batch file from cmd
Command Prompt
To run a batch file with Command Prompt, use these steps.
Open Start.
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the path and name of the batch file, and press Enter:
C:\PATH\TO\FOLDER\BATCH-NAME.bat