load Script
fun loadScript(file: File, language: String = Source.findLanguage(file), debugOptions: ScriptDebugOptions = ScriptDebugOptions()): PolyglotScript
Loads a script from a file. This method creates a new Script object, initializes it, and adds it to the list of loaded scripts.
Return
The loaded script.
Parameters
file
The script file to load.
language
The language of the script. If not specified, it is inferred from the file.