Send the following on WhatsApp
Continue to ChatMicrosoft 365 - PnP PowerShell - Navigating to all the versions of document and exporting respective metadata in CSV file https://knowledge-junction.in/2023/10/08/microsoft-365-pnp-powershell-navigating-to-all-the-versions-of-document-and-exporting-respective-metadata-in-csv-file/