util_find_pid function

R function to find PID of active applications