UseThe below command it will give youthe top 10 CPU utilization and, with output will be refreshed for every 5 seconds:
while(1){ps | Sort-Object -Property cpu -Descending | select -First 10;Write-Host "output will be refreshed in 5 sec's n
n Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName"; sleep -Seconds 5}
while(1) {
Ps | Sort-Object -Property CPU -Descending | Select -First 10
Write-Host "output will be refreshed in 5 sec's `n `n Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName"
Sleep -Seconds 5
}