Is there a way to check and prompt users to close all running applications.

Its just an enhancement to a small tool I am building.

I want the program to startup, check for running apps, prompt user if there are apps running, do its thing... and close.

Any suggestions would be appreciated.