I run an application from PowerBuilder and terminate it when i dont need it. But the application when running, it executes other processes from a specific folder.

I want to kill all processes if they run from a specific folder. 

How to get the process handles of all those processes that have specif folder name in their path?