title: Powershell New-Object -comobject InternetExplorer.Application bring to front
body: <p>I searched but didn't find anything that specifically addresses this question.</p>
  
  <p>Consider the code, can the new IE window be created in front of all other open windows?  VBScript had the <code>Run Method (Windows Script Host)</code> that offered <code>intWindowStyle</code>
  Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this information.</p>
  
  <p><strong>Does Powershell's new com object have anything similar?</strong></p>
  
  <pre class="lang-psh prettyprint-override"><code>Param(
  [Parameter(Mandatory=$false)]
  [string]$svr,
  [Parameter(Mandatory=$false)]
  [string]$last,
  [Parameter(Mandatory=$false)]
  [string]$desc,
  [Parameter(Mandatory=$false)]
  [string]$date)
  $ie = new-object -comobject InternetExplorer.Application
  $ie.navigate("http://www.stackoverflow.com")
  # Wait for the page to finish loading
   do {sleep 1} until (-not ($ie.Busy))
  $doc = $ie.document
  $link = $doc.getElementById("Sym_Msg").Value = "$svr"
  $link = $doc.getElementById("Lname").Value = "$last"
  $link = $doc.getElementById("Desc").Value = "$desc"
  $link = $doc.getElementById("Date_Ent").Value = "$date"
  $button = $doc.getElementById("submit1")
  $ie.Visible = $true
  $button.click();
  [System.Runtime.Interopservices.Marshal]::ReleaseComObject($ie) | Out-Null
  </code></pre>