For the sake of not reinventing the wheel, you could use this alias by qwerty with a slight modification.

Change the two instances of 'executablepath' to 'ProcessID'