Changing Filters by Sheet

So basically I have written a script that will create my schedules for me for every sheet in my project, the issue I am running into is try to get the filter to change to a certain sheet to only look for certain sheets.

Did you ever find a way to do this?