List Windows Processes in Visual Basic Script
Instead of copying once more time the contents from the Microsoft web pages, I've provide the links to the real pages:
You can use the information to create your own scripts.
Warning!!! I think you have administrative rights to properly run scripts to see all the processes in a machine. Not to speack to see the processes of a remote computer.