Hello,

Please refer to X708-Software-- How to power off command on Raspbian from software.