CompareYaml.ps1

function Compare-Yaml {
    <#
        .Synopsis
        Deeply compare two yaml documents
    #>

    param(
        [Parameter(Mandatory)]        
        $File1,        
        [Parameter(Mandatory)]        
        $File2,
        $Pattern        
    )
    
    &$script:yq compare $File1 $File2 $Pattern
}