@WINPID[title] : Returns the process ID for the window with the specified title, or -1 if no match is found.

 

Example:

 

echo %@winpid[TCC Prompt]

438636