Added 'args' option to pass script args programatically

Also fixed a bug with how rawArgs was being parsed.