title: in javascript how to call powershell script
body: <p>I have a powershell script and I run on powershell like :</p>
  
  <blockquote>
    <p>.\download-packages-license.ps1</p>
  </blockquote>
  
  <p>But I want to call the javascript file before these lines.</p>
  
  <pre><code>var json =fs.readFileSync('../../dev/licenses/AllLicenses.json', 'utf8');
  var options = {compact: true, ignoreComment: true, spaces: 4};
  var result = convert.json2xml(json, options);
  </code></pre>
  
  <p>I could not anything in stackoverflow except : <a href="https://stackoverflow.com/questions/47479448/how-to-run-a-powershell-script-from-javascript][1]">How to run a powershell script from javascript?</a>
  So pls help thanks</p>