Creating Keynote Schedules and adding filter

The script currently duplicates an existing keynote schedule and creates new ones from reading an excel file. It reads in the first column the New name for the keynote schedule and second column its supposed to add the filter and value for that specific created schedule. The problem is when it creates the schedule it creates as many filters as rows in the excel file. I just want it to create one filter per schedule and add the value from the second column of spreadsheet, for that schedule created. Appreciate all the help. Thanks

image