title: How to change the URL in an Edge tab with Powershell
body: <p>I am using Powershell and MS Edge. This is on a routine where we are changing a web page every minute. However I cannot figure out how to change the address of the current tab to reflect the new address so the routine is creating lots of new tabs.</p>
  <p>Currently I am using &quot;Start-Process&quot; to display the URL which creates a new tab every minute. To prevent tab build up every 10 minutes all tabs are closed and we start again. This also has the effect of putting the &quot;Restore Pages&quot; dialog on the screen. Its clunky but it works.
  The addresses in the variable $Filename are https which open easily in a web browser.</p>
  <p>The question is how to display <a href="https://www.bing.com" rel="nofollow noreferrer">https://www.bing.com</a> then change it to display <a href="https://www.google.com" rel="nofollow noreferrer">https://www.google.com</a> without closing the browser or opening a new tab using Powershell.</p>
  <pre><code> $Count++
      if ($Count -ge 10) { 
          Stop-Process -name msedge 
          $Count = 1
       }
  
      if ($Count -eq 1) {
      Start-Process &quot;C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe&quot; -ArgumentList $Filename,&quot;--start-fullscreen&quot; }  
      if ($Count -gt 1) {
      Start-Process &quot;C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe&quot; $Filename 
  </code></pre>