Thread:Project:Support desk/Mass Edit and Save pages to run $wgHooks 'EditPage::showEditForm:initial'

I have an extension that checks the page text and if a specific text isn't there it will add it. I'm usingthe hooks The extension runs if I go to each page, edit and then click 'save page', however, I have hundreds of pages on my wiki. How do I force an edit page and save on all the pages so the extension will run without me having to go to each page individually?