Cannot restart, shutdown or log out
This looks suspiciously like a problem with permissions. Open /Applications/Utilities/Disk Utility and fix permissions on your drive then reboot and see if it works.

EDIT: After comment, repair permissions is not available anymore in newer macos releases. 

Then you will have to reinstall macos, I am afraid.