Shell Command to shutdown Libreelec

Hi there, i’ve created a sh script which works to shutdown a remote PC running libreelec but i am struggling to get the Wake On Lan Switch to run this shell command to turn it off when the switch is set to off.

I am currently having an issue where when checking config it reports an error

Here is my config which is showing in the error here

Here is the error

Maybe try and change

turn_off_MEDIA: 'sh /var/opt/'


turn_off_media: 'sh /var/opt/'