I have an AppleScript right now that I can use remotely to run a scene. I want to use this on my PC as well but I’m not sure how to write it for PowerShell. Anything I try results in some type of error.
AppleScript:
do shell script "curl -k -X POST -H \"Authorization: Bearer MY_TOKEN_IS_HERE\" -H \"Content-Type: application/json\" -d '{\"entity_id\": \"scene.light_dim_20\"}' https://MY_SERVER:8123/api/services/homeassistant/turn_on"