Add "with_retcode" option to run_script

Enables us to pass the process.returncode to the caller.