If you ever want to create a Unix shell script that you can give to someone else so they can double-click it and run it through the Mac OS X Finder, all you have to do is (a) name the file with the ".command" extension and (b) make it executable. So, just name your Mac/Unix script like this:
ShowProcesses.command
Then make it executable, like this:
chmod +x ShowProcesses.command
You can also leave out the usual #!/bin/sh part on the first line.