Describe the bug
Powershell sensor does not work as satellite service. It works when Test Command/Script is executed, and it works as a hass.agent sensor.
To Reproduce
Steps to reproduce the behavior:
- Go to Satellite Service
- Click on Sensors
- Click on Add New
- Select PowerShellSensor
- Add this as command
$(get-date).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss')
- Click Store Sensor
- Click Send & Active Sensors
Expected behavior
The date as state in Home Assistant
Screenshots


Misc info (please complete the following information):
- Windows build (ideally screenshot/info of
winver.exe output): Win10 22H2
- Windows' UI language: EN
- HASS.Agent version: 2022.14.0
Please check what's applicable (multiple answers possible):