I have run an external script from "tmp:/", so I know that works. I haven't tried to run an external script from anywhere other than "tmp:/", but you could always try. If it doesn't work, it's a simple matter to transfer the script from a website to "tmp:/" (see roUrlTransfer GetToFile) and run it from there.
It does not have to be run from Main. You can run it from anywhere.
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.