Use sdparm like so:
sdparm --readonly -C stop /dev/sda
Without “readonly” it may just restart again immediately after shutting down