title: Using Powershell, I want to select an automatically opened .net web application as an object
body: <p>So I'm in the early days of setting up some automated testing, and I'm using powershell ISE to open a url, then select a button. </p>
  
  <pre><code>$ie = New-Object -com "InternetExplorer.Application"
  $ie.Navigate("http://UrlAddress")
  $ie.visible = $true
  sleep 30
  $Link=$ie.Document.getElementByID("LaunchBtn")
  $Link.click()
  </code></pre>
  
  <p>This will automatically open a new .net application in a separate window. I now want the code to automatically select a button on this newly opened window.</p>
  
  <p>Is there a way for me to create a new object using the new application window, without having to specify the url address? </p>
  
  <p>If I try and simply link straight to the application's url, it recognizes that this is not a new session and won't let me access it. </p>