Switching script creation method to use string.Template