Data/PSObject/Test-HasProperty.ps1

function Test-HasProperty {
    [OutputType([bool])]
    param(
        [Parameter(Position = 1)][PSCustomObject]$InputObject
    )
    Write-Output ($InputObject.PSObject.Properties.GetEnumerator().MoveNext())
}