Python Terminate Process Powershell Update Registry