Is it possible to run Powershell commands with a variable made in Node-Red/Home Assistant?
I have a input_select that has options for filenames. Is it possible to have that filename be sent into a message payload and have HASS agent receive it and launch a powershell process with the matching file on the computer?
Solution
Ya, commands/custom commands can "accept" parameters sent with the action (if I'm not mistaken configuring an empty one and then sending the absolute path to script as action payload should just launch it)
Although I must put it out there: from the security perspective that's not desirable :P