I agree with Rich: let NUT do the work as intended.
But since you ask how to have OH run a shutdown command: