I am trying to run powershell script from JScript. powershell will pop up but the script is not getting executed.
Below is the sample code
var WSH = new ActiveXObject("WScript.Shell");
var exec= WSH.Exec("powershell .\test1.ps1");
exec.StdIn.Close();
test1.ps1 is a simple script which creates textfile.