Private/Get-PlistValue.ps1

function Get-PlistValue {
    param(
        [string]$PlistPath,
        [string]$Key
    )

    if (-not (Test-Path -LiteralPath $PlistPath)) {
        return ""
    }

    $value = /usr/libexec/PlistBuddy -c "Print :$Key" "$PlistPath" 2>$null
    return ($value -join " ").Trim()
}