Public/Close-DteInstace.ps1
function Close-DteInstace { [CmdletBinding()] param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true)]$DteInstace, [switch]$DoNotStopMsgFiltering ) try { $DteInstace.Quit() if (!$DoNotStopMsgFiltering) { Stop-MessageFilter } } catch {} } |