There are quite a few Q&A on this site about task scheduler on win.
You should not try to use the JMP scheduler function for an app that needs to run long term; you need something like the OS task scheduler that will restart when the machine restarts. I think some of the Q&A may have been about how to get a started-but-not-logged-in machine to run JMP.
JMP can be started from the command line with a .jsl file to execute, and that is probably what you want from the win task scheduler.
Craige