title: How to execute 'npm run' command programmatically?
body: <p>I have some custom testing script, which I can run with <code>npm run test</code> command, which executes some Node script for starting e2e/unit tests. But before it I must start webpack dev server with <code>npm run dev</code> (it's a some custom Node script too, details doesn't matter) in other terminal window. So, I want to omit <code>npm run dev</code> manually executing and move it to custom <code>npm run test</code> script, i.e. I want to execute webpack dev server programmatically in Node script. How can I execute <code>npm run dev</code> programmatically using Node script and stop it then? Thanks in advance! </p>
  
  <pre><code>"dev": "node node_modules/webpack-dev-server/bin/webpack-dev-server.js --host 0.0.0.0 --history-api-fallback --debug --inline --progress --config config/config.js"
  </code></pre>