Executing legacy ExtendScripts from UXP

I’m afraid you can’t call them from UXP:
https://forums.creativeclouddeveloper.com/t/jsx-file-evaluation-in-uxp/2149/3