I know hd this on an old script did a few years ago, but have forgotten how to do it.
what trying to do is an on load, where the script checks to see if there is a previous version loaded first, then unloads that one first before proceeding to load the new version.
Thanks