Chaeck if any cover is open and close only that in automation


i’d like to make an automation which checks in Action if any of my covers are open and closes only those. I mean I have 13 shutters and when I arm my alarm system to armed, it should close only those shutters which are open.
The reason that the shutter switch has a quiet click sound when it gets Close command and when my children sleep in their room, I would avoid it if the shutter is already closed when I arm my house to “Armed home”.