You might want to launch resource monitor from powershell with:
PS C:\>resmon
YouPowershell via resmon
, which can always close the application with Alt+F4 and that should switchbe closed via Alt+F4, switching focus back to the powershell windowPowershell terminal.