Hey @igh_033, there has been some discussion here on the forum about ways to switch SD profiles via a KM macro.
Here are a few of the topics that might be helpful. ↓
Triggering Stream Deck profiles for Logic Pro plugins - Questions & Suggestions - Keyboard Maestro Discourse
Change Stream Deck Profile From Macro - Questions & Suggestions - Keyboard Maestro Discourse
Also, FWIW, I reached out to Elgato at the beginning of 2022 to ask them about developing a way to switch profiles via AppleScript or Shell Scripts etc. I posted about it in the following link. ↓