This is a coherent Gmail-to-Microsoft 365 migration playbook with an optional DNS audit script, but it should be used only by authorized IT staff because it involves privileged admin and DNS changes.
Install/use only if you are authorized to administer both Google Workspace and Microsoft 365 for the tenant. Treat any Google service account key, app password, and temporary Microsoft 365 credential as sensitive: use official admin portals, do not paste secrets into chats or tickets, restrict access, and revoke or rotate migration credentials after use. Plan MX/DNS changes in a maintenance window, preserve existing DNS records for rollback, pilot first, and verify mail flow and migrated data before decommissioning Gmail.