@PID[filename] : Returns the PID for specified name (or 0 if no match). If you have multiple copies of the same executable running, @PID will return the first one it finds.

 

Example:

 

echo %@pid[tcc.exe]

22420