title: How to run powershell script file from JScript?
body: <p>I am trying to run powershell script from JScript.
  powershell will pop up but the script is not getting executed.</p>
  <p>Below is the sample code</p>
  <pre><code>var WSH = new ActiveXObject(&quot;WScript.Shell&quot;);
  var exec= WSH.Exec(&quot;powershell .\test1.ps1&quot;);
  exec.StdIn.Close();
  </code></pre>
  <p>test1.ps1 is a simple script which creates textfile.</p>