I am using CMD in win 10 to read MQTT and it works quito ok for my purposes.
But I would like to use powershell instead because I could use variables and have a even better use for it.
But i dont know how to run mosquitto_sub in powershell. anyone have an Idea?
I think you should just be able to use it the same as any other executable? I believe that you can use the call operator
& 'C:\Program Files\mosquitto\mosquitto_sub.exe'