Hi Guest,
Not out of the box scripts but there are detailed step by steps guidance documentation from Microsoft on the Tenant to Tenant migration - https://learn.microsoft.com/en-us/microsoft-365/enterprise/cross-tenant-onedrive-migration?view=o365-worldwide
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.