Merge two GPOs

Has someone successfully merged two GPOs? What is the best script to do it?
Found the one from Microsoft Security Toolkit but didn’t help.
please let me know
thanks

My search came up with this, but I think it’s only registry based policies (so doesn’t cover things like deploying printers): UPDATED: Copy and Merge Group Policies (GPOs) with PowerShell | Microsoft Docs

Interesting group policy/powershell blog: Group Policy Blog - SDM Software

Maybe there’s some low-level way to do it with “get-adobject -properties *” ?

Copy and Merge Group Policies (GPOs) with PowerShell
This script will help with GPO consolidation and cleanup. It includes reports for linked and unlinked GPOs with detailed status.
Browse code samples | Microsoft Docs