The return value is a string containing one of these run-mode names:
The six names above are the interactive run modes. A seventh value, parse, is also possible: it is returned when the script is run in batch parse-only mode (the -parse command-line argument), which parses the script and stops.