process that hits most the cpu powershell windows code example
Example: check top cpu process with powershell
Get-Process -IncludeUserName | Sort-Object CPU -desc | Select -first 5| Select ProcessName,ID,CPU,UserName,Description | Format-Table -AutoSize