run script generation