Scripting - focus on piano roll

Are there any scripts out there that would cause the plugin to move focus to the piano roll? I’ve looked at the scripting guide, but it might as well be in Chinese (sorry, I don’t read or understand Chinese). I’m sure its easy to write a script to do this, but really have no idea how to do this.

I’m trying to set up key commands on my Stream Deck. The shortcuts themselves work (mostly!), but before executing anything, the focus seems to need to be moved to the piano roll with a mouse click. If I can use a script to do this, I think I can assign a keyboard shortcut to that script, and incorporate it as part of a MultiAction in StreamDeck. It may be that the problem is with my DAW (I’m using Synth-V as a plugin), but I’d like to investigate whether this might solve my problem.