title: Execute powershell script from Autoit?
body: <p>How do I execute a powershell script from AutoIt code?</p>
  
  <p>I assume it might be something like:</p>
  
  <pre><code>Runwait(@ComSpec &amp; " /c powershell.exe c:\Mytest.ps1", "", @SW_HIDE)
  </code></pre>
  
  <p>or </p>
  
  <pre><code>Runwait(powershell.exe c:\Mytest.ps1", "", @SW_HIDE)
  </code></pre>
  
  <p>But neither of those seem to be working.</p>