i have written a program that runs some system commands and then opens another app to do something.

The problem i have is that my program won't continue until the app is closed manually, but i am wriiting an automation program so this is a major problem.

I know the process name, whats the easiest way to shut it down.

Thanks