The Windows thread starts / stops according to other programs [on hold]

We want to start or reactivate a thread / background program in Windows as soon as another application (the exe name is known) starts up or is restarted (it can be stopped).
How can this be done?