# Terminate known high CPU processes
Write-Output "Terminating all running instances of reg.exe, AgentPackageTaskManagement.exe, and conhost.exe"
'reg', 'AgentPackageTaskManagement', 'conhost' | ForEach-Object { Get-Process -Name $_ -ErrorAction SilentlyContinue | Stop-Process -Force }