Running powershell file as admin from JS
WshShell.Run("powershell -file \"" + pathvar + "\\My Tests\\PickupTest.ps1\"")
Now the problem is that we have to manually run most files as Administrator to run the code in the files successfully.
Solved! Go to Solution.