I've recently converted a 400 page classic wiki into modern pages on SPO, but I need them to all follow a template I've created.
Is there a way (in PnP Powershell) in the script I follow to convert the pages at the stage the page converts, to create the modern page with a specified template? or take the converted modern pages, then make copies of each one with a newly specified template?
I am following the script here: https://pnp.github.io/script-samples/modernize-bulk-publishing-pages/README.html?tabs=pnpps
I have searched everywhere and cannot find any examples of this, making a copy of a page with a new template... I don't want to have to change each page to match there are too many to do it manually :/