I think it's working. Issuing "set-alarm 6:00" will set the computer to automatically turn on the next day at 6am, or the same day, if the script was executed after midnight already.
Information about the whole thing, read before trying anything, no warranties/responsibilities whatsoever and all that, actually by having some trouble with the script you warrant ME the legal rights to sue YOU for a billion dollars and/or have you as my free butler for life:
...