Nice script., but may I ask why?
I mean you do see the built in script editor right?
It lets you see all the loaded scripts, view the scripts, unload/load scripts, and pretty much everything you would need to do with a script.