Hello,
I am running the powershell script on a windows machine using the powershell node.
https://flows.nodered.org/node/node-red-contrib-powershell
I get a payload that comes back when I change the debug node to msg object but nothing when I just look for the payload.
[{"id":"24bd1866.c47148","type":"inject","z":"811a5a5b.6edda8","name":"","topic":"","payload":"(Get-Item \\\\5553p-loc1\\storeman\\L_SMS.exe).VersionInfo.FileVersion","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":330,"y":980,"wires":[["b060b702.4cf548"]]},{"id":"b060b702.4cf548","type":"powershell","z":"811a5a5b.6edda8","name":"","x":490,"y":980,"wires":[["9fa9f593.9b2b38","1cf8e6a2.cf0629"],[]]},{"id":"1cf8e6a2.cf0629","type":"debug","z":"811a5a5b.6edda8","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","x":720,"y":980,"wires":[]},{"id":"9fa9f593.9b2b38","type":"debug","z":"811a5a5b.6edda8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","x":650,"y":1060,"wires":[]}]
how can I get the output to a msg.payload?
Thanks in advance.