Adds the preview task to generate.ps1