I have a button I've made for Shutdown PC which calls the following in scripts.yaml. This previously worked but must have stopped working recently. I presume there's an update broke it, but i don't recall seeing anything in breaking changes relating to this.
alias: Reboot AMDPC
sequence:
- service: shell_command.restart_amdpc
shutdown_amdpc:
alias: Shutdown AMDPC
sequence:
- service: shell_command.shutdown_amdpc```