getProcessIDFromProcessName

function getProcessIDFromProcessName(processname)

Searches the processlist for the given name and if found returns the processID. Returns nil if not found