In SharePoint Online users can export a SharePoint site script template in XML form using PnP PowerShell. It is a reusable component if the user wants to create the same SharePoint site collection multiple times. PnP PowerShell is a powerful way to provision site artifacts in SharePoint online including site structure and its content.