Deltas/Compare-NAVObject.ps1

function Compare-NAVObject
{
     Param(
        [Parameter(Mandatory=$true)]
        [string]$ResultPath,
        [Parameter(Mandatory=$true)]
        [string]$ModifiedPath,
        [Parameter(Mandatory=$true)]
        [string]$OriginalPath
    )

    Create-EmptyDirectory -DirectoryPath $ResultPath
    $DeltaPath = Create-TempDirectory

    Compare-PresentNAVApplicationObjects -OriginalPath $OriginalPath -ModifiedPath $ModifiedPath -DeltaPath $DeltaPath | Out-Null

    $DeltaObjects = Get-ChildItem $DeltaPath
    foreach($DeltaObject in $DeltaObjects)
    {
        [IO.File]::Copy((Join-Path $ModifiedPath $DeltaObject.Name.Replace(".DELTA",".TXT")), (Join-Path $ResultPath $DeltaObject.Name.Replace(".DELTA",".TXT")),$true)
    }

    Remove-Item $DeltaPath -Force -Recurse

}
Export-ModuleMember -Function Compare-NAVObject