Automation to shutdown pc from node red

There are a couple of options in this thread including rpc. I use the hass agent for my pc’s. Once the pc is integrated, one way or the other, you will have an action to execute. Use an action node to control it from NR.