I am trying to run Tomcat webapps from bat files, some of them with the Windows scheduler and some when an application and network monitor detects that its process is down