Alexa controlled wol and exec shutdown

Missing quote after MAC. And wrong quotes hopefully a copy paste problem.
Thin about using VS Code with openhab Exstension it helps a lot with syntax problems.

Seems like openhab 1 syntax to me. Either install the legacy bindings for openhab containing exec1 or have a closer look to the documentation for exec 2.

https://docs.openhab.org/addons/bindings/exec/readme.html

Its a bit more to set up.

.things

Thing exec:command:pcOff [
            command="net rpc shutdown -I TARGET -U USER%%PASSWORD",
            interval=0,
            autorun=false]

.items

Switch PC_P "PC" [ "Switchable" ] { wol="IP#MAC", channel="exec:command:remote-send:run"  }

Just typed it from my brain not tested, but somehow like this should be the setup.