Need SharePoint Online PowerShell Script

Job ID: 39729104

Budget: $10 – $30 USD

I need to tighten up a PowerShell routine that reports every SharePoint Online page actively using a specific reusable content item. My current version authenticates fine and crawls all site pages, yet it flags many files that don’t really reference the item, so the results aren’t trustworthy. Because this is for day-to-day site administration, accuracy matters more than speed.

You’ll receive the existing .ps1 file and the content item ID. Please deliver:

• A corrected (or rebuilt) PowerShell script that runs against SharePoint Online and returns only the pages that truly embed the reusable content.
• Clear inline comments so I can tweak the logic later.
• A brief validation note showing how you confirmed there are no false positives.

Feel free to lean on PnP.PowerShell or Microsoft.Online.SharePoint.PowerShell—just keep the module choice consistent and compatible with Windows PowerShell 5.1 / PowerShell 7. No on-prem code paths needed. Once delivered, I’ll run a quick spot-check on several pages; if they all align, we’re done.