What's the concern here? You could containerize your scripts, each in a separate Docker container.
Well, I'm planning to run hundreds of scripts for each user. I think something like context switching like in V8 isolates would remove a lot of overhead.