How to close a tab in existing IE window using powershell
问题 Hi Does anyone know how to open and close a tab in internet explorer using powershell. I am able to open one using the following $navOpenInNewTab = 0x800 # Get running Internet Explorer instances $oApp = New-Object -ComObject shell.application # Grab the last opened tab $oIE = $oApp.Windows() | Select-Object -Last 1 # Open link in the new tab nearby $oIE_Total_Sends = $oIE.navigate($link, $navOpenInNewTab) while ($oIE.busy) { sleep -milliseconds 50 } How do i close this new tab through