Added 'scriptArgs' option (array) to pass arguments to script programatically

Was just 'args' in previous pr, but there was a naming conflict. Tests are passing now.