getProcessNames function

Get unique process names