Have you though of splitting that one huge file into several smaller files?

I use PnP 4.22 (which is quite a robust script) plus a few of my own scripts, and they have these characteristics:

38 Files, 27834 Lines, 1021648 Bytes

That doesn't include the aliases, or the addons that I don't have loaded.



Just a thought...

-genius_at_work