Hi @mickael.g see these posts here:
(the second link shows PanelScheduleSheetInstances but it will work the same with ScheduleSheetInstances)