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 https://pastebin.com/peRNW1Nd

Here is the error https://pastebin.com/fi3vtwvS

Maybe try and change

turn_off_MEDIA: 'sh /var/opt/shutdownkodi.sh'

to

turn_off_media: 'sh /var/opt/shutdownkodi.sh'