Automatic shutdown rule for an PI5, when an Item changes

I agree with Rich: let NUT do the work as intended.

But since you ask how to have OH run a shutdown command: