not as complete, but i released some of these commands a few weeks ago as open source and free here: https://github.com/siong1987/sho...
it only supports restart, sleep, logout, and shutdown. feel free to let me know what other commands that you want.
to see how it actually works, check out this gif:
Prefer
Really Good Emails
Cicada.build