I got my problem solved with a freeware program.
I does everything, it has a GUI or you can use command line

PowerOff 3.0.1.3