Calling an entire script through another script


I have two scripts. I need to know if it’s possible for me to call script2 from within script1. Not just 1 function from script2 but the entire script. Is this possible? If so, would someone mind telling me how to do this?

I’m using JS.

Thanks in advance!

I got it.


endmenu.enabled = true;