How to run and action in UXP plugin

It’s working now and running the JSX script.
Nice workaround.
Perhaps you could also solve this one…