title: How to add Powershell commands to an NPM script?
body: <p>This works on the Powershell command line:</p>
  
  <pre><code>C:\rootProject\&gt; copy ZZZ.js -destination ZZZXXX.js
  </code></pre>
  
  <p>But this doesn't work:</p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>"scripts": {
    "copy-script": "copy ZZZ.js -destination ZZZXXX.js"
  }
  </code></pre>
  
  <p><strong>Run script:</strong></p>
  
  <pre><code>C:\rootProject\&gt; npm run copy-script
  </code></pre>
  
  <p><strong>ERROR</strong></p>
  
  <pre><code>The syntax of the command is incorrect.
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! test-module-imports@1.0.0 test-copy: `copy ZZZ.js -destination ZZZXXX.js`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the test-module-imports@1.0.0 test-copy script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2019-11-29T09_29_59_261Z-debug.log
  </code></pre>