Phshutdown

Is there any way to shutdown computer through phshutdown, but without having to click in the dialog?.

shutdown -S user or shutdown -S photon doesn’t work either, I get the message"Error: can’t locate Photon server"

I’m also looking for a way to power-off computer, I have already tried with shutdownx (posted here before) but it doesn’t work for me.

Any help is greatly appreciated.