Terminal command to bring up shutdown dialog? I know how to shutdown a Mac from Terminal, but is there a way to actually bring up the shutdown dialog you get from Apple → Shut Down…?
You can send loginwindow the kAEShowShutdownDialog Apple event:

osascript -e 'tell application "loginwindow" to «event aevtrsdn»'


The four letter codes for Apple events are listed in AERegistry.h. See this answer for more information.