How to run and action in UXP plugin

if you do a quick search in the forum you will find some similar issues and solution by others
check this link, it may help you.
cheers:

https://forums.creativeclouddeveloper.com/t/execute-a-script-via-a-button/3699/9?u=wanokuni