This plug-in has been archived as this functionality is now available out of the box.
Contains a function, getprocesstaskid, for retrieving a task id based on a process id and a task name.