I\'m running a batch file that has these two lines:
start C:\\Users\\Yiwei\\Downloads\\putty.exe -load \"MathCS-labMachine1\" \"C:\\Program Files (x86)\\Xmi
Just try /s as listed below.
/s
As the last line in the batch file type:
exit /s
The above command will close the Windows CMD window.
/s - stands for silent as in (it would wait for an input from the keyboard).