When run-script is run with an invalid script, an exception is thrown.
Ideally, run-script should display a suitable error message and not throw an exception stack trace.
Examine the stack trace for information that might help identify errors in the script.