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.