Is there a good way to run the same script for multiple PSD files in parallel?

I have a script that can run for hours just to process a single PSD file. I have many PSD files. I need to run the script for each of them. Once it’s finished, I may need to run again the script for all or some PSD files. So, in summary, I may need days or even weeks to process the PSD files, which is huge setback for productivity.

Now, programming libraries that parse PSD files (like psd-tools) do not seem to support most needed ExtendScript scripting features. So, they are basically out of the equation, but if you know a library, in any language, that supports all scripting features available in ExtendScript, let me know.

Anyway, if that solution is out of the equation, the only solution to speed up this process would be to execute the script for all PSD files in parallel. Now, this requires me to either buy multiple licenses for Photoshop, which may cost a lot (and it’s a bit ridiculous if I only need to run scripts), or try to run multiple Photoshop instances, but I have no idea if this would work. I suspect there may be some mechanism in Photoshop that detects if more than one instance is running and it may not allow me to do this. I know a single Photoshop license can be used only in 2 different computers. But this is not enough. I have many PSD files.

I also know that Adobe has some cloud services, but there’s no cloud service to run scripts in the cloud, but only to execute previously recorded actions or other limited operations.

So, what would you suggest? What have you tried that worked?

I’d like to reduce the time we process the PSD files from n * (average time to process 1 PSD file), where n is the number of PSD files, to average time to process 1 PSD file.

I know I can try to optimise the script itself, but this is not enough. I will gain only say a couple of minutes.