Public/Get-ADPDisplayName.ps1

function Get-ADPDisplayName {
    <#
    .SYNOPSIS
        Get a user's Display Name from ADP

    .DESCRIPTION
        Get a user's Display Name from ADP

    .PARAMETER ADPObject
        Object which holds the Display Name

    .EXAMPLE
        Input Object: ADP Object
        Return String: <Display Name>

    .NOTES
        This is used when passing the full adp worker object from ADP's APID

    .FUNCTIONALITY
        Powershell Language
    #>

    [CmdletBinding()]
    param (
        [Parameter( Mandatory = $true,
            Position = 0,
            ValueFromPipeline = $true
        )]
        $ADPObject
    )

    $first = $null
    $last = $null
    try {
        $first = ( $ADPObject | Get-ADPFirstName )
    }
    catch {}

    try {
        $last = ( $ADPObject | Get-ADPLastName )
    }
    catch {}

    return ( "$first $last" | Get-ValidADPReturn )
}