Can we write a api which will detect whether a particular programm is running and also bring the program to the front of the screen.