title: Can node js pass command line arguments to twojs in the same line?
body: <p>I am new to Node.js. Recently, I am building a script as below:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;updateData&quot;: &quot;node runFirstScript.js &amp;&amp; node runSecondScript.js&quot;,
  &quot;build:desktop&quot;: &quot;npm run updateData env1&quot;,
  &quot;build:mobile&quot;: &quot;npm run updateData env2&quot;,
  </code></pre>
  <p>I am expecting <em>runFirstScript.js</em> and <em>runSecondScript.js</em> can get the parameters <code>env1</code> and <code>env2</code> while they are executed.</p>
  <p>Instead of separating as below:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;updateData1&quot;: &quot;node runFirstScript.js&quot;,
  &quot;updateData2&quot;: &quot;node runFirstScript.js&quot;,
  &quot;build:desktop&quot;: &quot;npm run updateData1 env1 &amp;&amp; npm run updateData2 env1&quot;,
  &quot;build:mobile&quot;: &quot;npm run updateData1 env2 &amp;&amp;  npm run updateData2 env2&quot;,
  </code></pre>
  <p>Is there any optimum solution for this?
  Thanks</p>