Update the `generate` script execution procedure