Webmethods Application status script

Hello everyone how i can check the status of the IS is running or not through batch script,

Because my client requirement is he wants that health check report of IS, Broker, DB, MWS before starting their work everyday
so i need a script that give me the status report and send a email of status result to client.


I guess U can write a java code for DB and Broker and use curl to check URL status of IS and MWS and run it from script.

Or you can try to use command central and platform manager.

can u give me a java code and script because i am new in it