HASS.Agent: Windows client to receive notifications, use commands, sensors, quick actions and more!

Hi. I just installed HASS.Agent and I have a couple of questions, please.

I am trying to grab some information about VMs on my PC running Microsoft Hyper-V. To start, I’d just like to see the results of a get-vm command in Home Assistant. I am trying to set up a powershell sensor in HASS.Agent for this.

  1. This command requires elevation. Only administrators can run it. But even if my user is administrator, I get an error. I’m sure others have solved this problem before: how to run the powershell sensor command as admin?

  2. When I set up the sensor with a powershell command, my PC goes crazy with a blue window popping up and disappearing every second! How do I make this run without any sort of window? It should be a background command…

Thanks in advance for any help!