Added support for executing a script and having the result returned as a string.