I am trying to create a site script from an existing team site using Get-SPOSiteScriptFromWeb cmdlet but when I run the script that I followed from this Microsoft document. I am getting a File Not Found error even though when I run Get-SPOSite, it is listed. I am using the latest SharePoint Online Management Shell. Here is my script:
Get-SPOSiteScriptFromWeb -WebUrl https://mytenant.sharepoint.com/sites/MyPMTeamSite -IncludeBranding -IncludeTheme -IncludeRegionalSettings -IncludeSiteExternalSharingCapability -IncludeLinksToExportedItems -IncludedLists ("Lists/SiteAssets", "Lists/Shared Documents","Lists/Award Documents Contract Files", "Lists/PWS", "Lists/Deliverables", "Lists/Monthly Reports", "Lists/Invoices", "Lists/Recruiting and Hiring", "Lists/Issues and Correspondence", "Lists/Issue Tracker list", "Lists/Project Tracker list")|clip
Any assistance would be helpful as I have done everything I can think of to do but cannot figure out what is going on.