Is there a script that can be written that manually triggers an automation I've set up?

I’m looking for a simple script that I can add to a base that when run, manually triggers an automation I’ve set up that is turned on.

For background into, I’ve created an automation that works, but the automation will only apply to future record updates. Is there a way to run a script that triggers my new automation to run manually and update all records that match?

Presumbly, because this automation only applies to future record updates its current trigger is “when record created” or “when record updated”, yes?

What you could do is duplicate the automation but set the trigger to be based on a field you can control, e.g. a checkbox. So, something like:

When checkbox is checked, run the script

This would give you the ability to pick specific records to pass through the automation. Does this work in your scenario?

Or if you want something to do 10, 100 or 1000 records, write a script that checks the checkbox where conditions are matched