Filter by parameter value by name error

Hi! This is another post that I created, I already have all the filters, filed, etc set up, and have all the SKUs within the same schedule, now I need to split up those SKUs and have their own schedules. I’ll also need this script to be able to apply to other files in the future.
[Create multiple schedules with different structural assemblies]