Extracts out the running of a single script file into its own method.