Launch an Application Logout/Shutdown

I want to start keeping a journal, but I generally forget. I want to create something that reminds me if I logout, sleep, or shut the computer. Something like:

Sync to time server (I am running Boot Camp, so sometimes my time is wrong)

If this has already run today, continue with request (logout/sleep/shut)

If not

If time is 9 pm - 11:30 pm

Cancel logout/sleep/shutdown


Would that work? I don’t really know how to script at all, FYI.