If script is an array, run commands in serial