Process monitoring in windows/linux

When this question arises from time to time, a link to this thread with a “TOP 5” Local Check is posted:

The script is for Linux. I don’t know how hard it is to port it to Windows/Powershell.