Create two bat files :
File1.bat
start C:\Users\%username%\Desktop\project_folder\File2.bat
rem Notice I didn't use %cd%\File2.bat because preview runs from a temp folder;
File2.bat
echo CMD STARTED
Now in your project back in construct
- add the browser plugin to your project
- create a variable named cd and set it's value to the path of your first bat file with \\ 's
To launch cmd Browser Execute Javascript :
"require('child_process').execFile('"&cd&"');"
With that said there's probably a way easier way to do this