Generalize run script.