Creating an equipment schedule for each room

The goal is to automatically generate a separate equipment schedule for each room.

We were able to create a new schedule for each room with the room name as the schedule’s title, but they contain identical information - all of the equipment for all of the rooms.

From here, we’re not sure if it is best to filter the schedules based on the room name, or if the equipment and room lists should be combined/sorted prior to creating schedule fields.
(we’re also not sure how to do either of those steps, but our attempts are in the snip).

Any help would be greatly appreciated!

The approach id suggest is duplicate/rename the source schedule and then modify the value of the filter for each to target the room number. I’ll try and dig up my code for this tomorrow if it isnt solved by then… buried in a work solution that never took off so low value to share.