gen ics script