How do I execute a powershell script from AutoIt code?
I assume it might be something like:
Runwait(@ComSpec & " /c powershell.exe c:\Mytest.ps1", "", @SW_HIDE)
or
Runwait(powershell.exe c:\Mytest.ps1", "", @SW_HIDE)
But neither of those seem to be working.
powershell.exe -File C:\MyTest.ps1(if script execution policy permits).