it's very rare when you really need to use powershell.  most powershell stuff can be converted over to just AutoIt pretty easily. on those occasions when I must use powershell, I just write .ps1 files out on the fly and use that directly and retrieve the results.  that way you don't have to figure out all the switches.  Just write a .ps1 file as you want and populated with variables as it's written. $sPowerShell = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellId