If you use Oracle PBCS (or FCCS) instances, you can use EPM Automate tool to restart your application using Windows command: EpmAutomate. You can also go forward on the functions and use a batch file! Which is much easier to
batch
A step by step guide to easily automate HFM tasks