Is there a possibility to register a command that is run in any case when the current (local) PowerShell instance is getting closed?
I want to register a cleanup comm