Create trendscript