Hope you all and you families are well and safe

I need a help regarding how to start and to "kill" a 3rd party application.
I need to start a 3rd party application after my system starts (easy, using EXECUTE) and need to "Kill" this application before shutdown my system.
Any ideia ??
[]´s Salamandra.