title: Run grunt task with node.js arguments on Windows
body: <p>I am running into an out of memory error when running grunt babel. It is solved on mac by increasing max-old-space-size. However some of our developers are on windows machines and I have not found a way to do this on windows.</p>
  
  <p>What is the equilevant of:</p>
  
  <pre><code>node --max-old-space-size=10000 node_modules/.bin/grunt babel
  </code></pre>
  
  <p>on windows?</p>
  
  <p>Or is there a universal command that works on both?</p>
  
  <p>My dependencies:</p>
  
  <pre><code>"@babel/core": "^7.1.5",
  "@babel/preset-env": "^7.1.5",
  "grunt-babel": "^8.0.0",
  "grunt": "^0.4.5",
  "grunt-cli": "^1.3.1",
  My babel config in gruntfile.js
  </code></pre>
  
  <p>My babel config in gruntfile.</p>
  
  <pre><code>babel: {
    options: {
      compact: true,
      presets: ['@babel/preset-env'],
      sourceMap: true,
      inputSourceMap: sourceMapInJson)
    },
  },
  </code></pre>
  
  <p>Error I was getting on Mac and still getting on Windows without increasing max-old-space-size: </p>
  
  <pre><code>FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  </code></pre>
  
  <p>Error I am getting on Windows with max-old-space-size param: </p>
  
  <pre><code>basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
           ^^^^^^^
  
  SyntaxError: missing ) after argument list
  </code></pre>