Maybe have a function similar to besirc where you can load a script and then unload it.