added override progress bar parameter for use in RunScript functions