Is there a way to create a UXP plugin to run psjs scripts that run actions?

Looking for answers I stumbled upon a post from 2 and 3 years ago, that I want to share here, it is still not solving the issue, but I believe this topic is still hot, so collecting some posts while searching, may help others too.