functions/common/Get-ColorForBcConfigurationValue.ps1

function Get-ColorForBcConfigurationValue {
    param (
        [object]$CurrentValue,
        [object]$RecommendedValue
    )

    if ($null -eq $RecommendedValue) {
        return "Gray"  # Indicate the property should not exist
    } elseif ($RecommendedValue -eq "NotEmpty") {
        if (-not [string]::IsNullOrWhiteSpace($CurrentValue)) {
            return "Green"
        } else {
            return "Red"
        }
    } elseif ($CurrentValue -eq $RecommendedValue) {
        return "Green"
    } else {
        return "Red"
    }
}