How can get the PID of a running Process

I want to get the PID of a running Process in the Install shield script how can i do this, I have the name of the Process.