"How to shut down a PC" no mention of Linux, but apparently that is the topic.
But since it's not mentioned in the topic, it's going to come up. Personally I use a batch file and SysInternals to shutdown (after forcing bad-behavior apps to exit).
Sounds like you need a SysInternals for Linux??