geneerate script