There is no such command. It is an Object that is obtained by calking Get-Credential.
PS C:\scripts> $cred=Get-Credential domain\somename
PS C:\scripts> $cred
UserName Password
-------- --------
domain\somename System.Security.SecureString
PS C:\scripts> $nw=$cred.GetNetworkCredential()
PS C:\scripts> $nw
UserName Domain
-------- ------
somename domain
PS C:\scripts>
This construct:
$cred.GetNetworkCredential().UserName
Will only work on PowerShell V3 or later.
Your $credential object is null. That is why you are getting an error.
¯\_(ツ)_/¯