I am writing a bat file to auto install npm packages and install compass. The bat is simple as below:
npm install -g bower npm install -g grunt-cli npm insta
Possibly the npm program is a batch file itself. Then you need to use call, as only then the program control returns to the caller.
call
call npm install -g bower call npm install -g grunt-cli call npm install call gem update --system --verbose call gem install compass --verbose pause