Functions/Get-DataTypeName.ps1

Function Get-DataTypeName {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]$Value
    )
    return ($value.getType()).name
}