Alexa controlled wol and exec shutdown

@Nin it wont work like, sorry my mistake. If you switch on you triger both on. You will need to use a rule to and mutliple items to get what you want to achive.

.things

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

.items

Switch WolSwitch  { wol="IP#MAC" }
Switch ExecSwitch { channel="exec:command:PcOff:run" }
Switch PC_P "Pc"

.rules

rule "PC OnOff"
when 
    Item PC_P received command
then 
    switch receivedCommand {
	case ON  : WolSwitch.sendCommand(ON)  
        case OFF : ExecSwitch.sendCommand(ON)
    }
end

Only the PC_P switch will be place into your sitemap. (besides what es needed else to make it a sitemap.)
.sitemap

Switch item=PC_P

I did not test this but it should work like that, besides typos.