I have some Gulp tasks to do the typical clean, build, release actions for a website. Nothing particularly unusual in my
See if you can print out the node version that Visual Studio is shelling out to. It is likely that the version of Node that Visual Studio is using is different than the one you are using at the console. The Map collection looks like it was introduced in Node v4.0.0 https://nodejs.org/en/blog/release/v4.0.0/
You should be able to log the Node version using
console.log('Version: ' + process.version);