Bumping this old thread, I was looking for a way to do this and came across a pretty simple solution using the idea here: How to Select an Item in an App Menu Bar?
Just change the app in the script to "stream deck" and the typed text to the profile you want to select - you can now trigger profile changes via the stream deck menu dropdown.
All elgato really needs to do is make these profiles assignable to a hotkey via the menubar app, would solve a lot of problems!