If you are already using Node.js and need to bundle modules, just use npm instead of a separate shell script. In fact, I just did an
npm init in my sites root folder so that I could have a number of scripts:
"start": "C:/src/Hugo/bin/hugo.exe server -D --disableFastRender",
"build-theme": "cd ./themes/twenty-sixteen; C:/src/Hugo/bin/hugo",
"hugo-version": "C:/src/Hugo/bin/hugo version",
"test": "echo \"No tests available\" && exit 1"
Saves me having to remember the hugo commands, especially as my hugo.exe is not in my path so I need to specify the right path to it. I also have the build-theme script so that I can easily build the scss and minify things without having to remember all the details.