title: MessageBox in Powershell not brought to front
body: <p>I'm using an application which allows me to run Powershell scripts on devices within my network and I need to prompt users with a MessageBox.</p>
  
  <p>My script creates the MessageBox fine, but my issue is that it always displays behind my application. I tried a solution online which suggested creating a new form with property Topmost=true and passing it as the first parameter, however it didn't seem to work. Is there anything immediately obvious that I'm doing wrong?</p>
  
  <pre><code>Add-Type -AssemblyName PresentationCore,PresentationFramework
  
  $top = new-Object System.Windows.Forms.Form -property @{Topmost=$true}
  $Result = [System.Windows.Forms.MessageBox]::Show($top, $MessageBody,$MessageTitle,$ButtonType,$MessageIcon)
  </code></pre>