Private/ConvertTo-NSPEntraPairingCsvCell.ps1

function ConvertTo-NSPEntraPairingCsvCell {
    <#
    .SYNOPSIS
        Text for a CSV cell. One a spreadsheet would run as a formula gets an apostrophe.
    #>

    [CmdletBinding()]
    [OutputType([string])]
    param([AllowNull()]$Value)

    $text = [string]$Value
    if ($text -match '^[=+\-@\t\r]') { "'$text" } else { $text }
}