title: Execute file from Powershell without getting "Do you want to run this file?" dialog
body: <p>I'm looping through .exe files in a directory and extracting the .msp files.<br>
  Ideally it would happen silently.</p>
  
  <p><br>
  This batch file command works perfectly.</p>
  
  <pre><code>for %%g in ("C:\test\"*.exe) do %%g /quiet /extract:"C:\test"
  </code></pre>
  
  <p><br>
  This powershell script almost gets it done.</p>
  
  <pre><code>$exeFiles = Get-ChildItem -path $directory -recurse -include *.exe
  foreach($file in $exeFiles) 
  { 
      $appArgs = '/quiet /extract:"' + $directory + '"'
      Start-Process $exeFiles $appArgs -PassThru | Wait-Process
  }
  </code></pre>
  
  <p><br>
  However, Windows 7 throws up the "Do you want to run this file?" dialog.<br>
  How do I make the powershell truly silent?</p>