Glad to hear world's still small and people use similar tools everywhere.
What I realized is if one just simply adds the scheduled task into Windows Scheduler, it will be executed under Local System credentials, and thus PowerShell will not be able to authenticate against RMS, as needed. The workaround would be to schedule a task to create an event using EVENTCREATE, and then have the response diagnostic task Windows Eventlog rule against it, that would have a RunAs profile.
For the monitor, I believe you should look at, say, description of the event you create being equal to the ID of the monitoring target, so that the recovery task could execute.
Then, you can create another missing Windows Event Log event to bring host back from Maintenance Mode.
I'll follow-up what the script to put a host into Maintenance Mode from newly-created event should look like.