Functions/IEcom/Remove-IEInstance.ps1
Function Remove-IEInstance($IE) { try {$ie.quit()} catch { try {[System.Runtime.Interopservices.Marshal]::ReleaseComObject($ie) | Out-Null} catch {} } [System.GC]::Collect() [System.GC]::WaitForPendingFinalizers() } |