pnp powershell – PnP provisioning engine templates sequence

I want to create a site collection then apply a template to it. I have defined my template in .xml file, and then a sequence where am creating a site collection, the question is no one seems to show how to run these? When I do connect-pnponline and connect to an existing site, it will try to run the template on the existing site, however I want to run the template on the newly created site from the template itself.

How do we do that?