How to get (and kill) a specific process on an application?

@Raj222
have a look here:

And here:

getting the PID/TID for the window and matching it to a process / thread was not reliable enough. So we defined the best practice of killing all Processes.