I am not sure about your installation, but you are probably calling uglifyjs.cmd or uglifyjs.bat , and when you call the batch file from another batch file, the execution is transferred to the called file and this will not return to the caller.
If you want to call the second batch and that if it ends, execution continues in the caller, you need to use the call command
cd go somewhere call uglifyjs ..\somescript -o ..\somefile.min.js --source-map ..\somemap.js.map --screw-ie8 cd ..
MC ND
source share