Change Streamdeck Screensaver & Sleep Time with Script

Hi!

I’m curious if anyone knows of a way to control Streamdeck settings by script? For example, I’d like to be able to have a timed script fire from Keyboard Maestro to change my Streamdeck “Sleep After” time and Screensaver image based on the time of day.

Before I go down the route of using Keyboard Maestro to simulate mouse clicks to do it, I thought I would ask here first to see if anyone knows of a way to do this with a shell script or AppleScript.

Thanks!