Script generating script