Firstly, you've taken out the bit that will actually send a message on to the next node. return msg
Next, you need to understand that the "commands" you list are MQTT "topics". Node-RED makes using MQTT easy because it mostly follows the same conventions.
So you can set msg.topic = 'shellies/shellyplug1/relay/0/command' and msg.payload = 'on'.