Init script generation