The subject pretty much defines the problem but here is WAY more detail, lol.
I'm locked into a certain structure at this point and find myself in a quandary.
I have isolated scripts sitting in sub-folders and based on a variable in those scripts I would choose to load one of two kinds of scenes (2D or 3D). That script will end up getting attached to a node in that scene.
I've thought about dynamically creating a dummy node, attach the script located in the folder I want to reference, get the variable, then toss the dummy node, load the main scene I need, and attach the script to that.
I wouldn't need to do that klunky process if I can just read from the script directly. I've seen the idea of preloading a script as a global resource but there is nothing global about these scripts, in fact it's the opposite.