Hi guys, here's a script I set up to simulate the standard Mac shutdown. I hope you like it!

osascript -e 'tell application "System Events" to click menu item "Shutdown…" of menu 1 of menu bar item "Apple" of menu bar 1 of process "Finder"'