Saving scriptjobs in Maya

Anyone know how to save a scriptJob into a maya file?

Basically I want the scriptJobs to run only when that specific file is opened. That way it isn’t wasting resources on unrelated files.

I know I can set a scriptJob to a UI that the user can activate after they start up the specified file, but I rather they didn’t have to do this step. The more automated it is the better!

Found it! ScriptNode.