Is there a way to create a KBM palette of my Stream Deck profiles?

In case I like to use a certain Stream Deck page without having to press a button manually I use this awesome script to change profiles from the following post quite a lot in the meantime:

I am using it assigned to focused application windows. Works great in many cases and I have the correct set of SD actions automatically showing up depending what is necessary on my screen.