Is there a way to iterate through automations to make sure they are on?

I’d like to make sure every automation is enabled at startup. Is there a way to do a “for loop” on each automation?

You put initial_state: on in an automation to ensure it is on at startup.