Still returning this message
Run PowerShell script 'Check Mail Delivery Queue Status' for the user
Identity: ; DeliveryType:
Identity: S1CAS1\Submission; DeliveryType: Undefined
Identity: S1CAS2\Submission; DeliveryType: Undefined
Identity: S2CAS1\Submission; DeliveryType: Undefined
Identity: S2CAS2\Submission; DeliveryType: Undefined
Cannot invoke this function because the current host does not implement it.
HEre is a copy of the script im putting in to the Poweshell Command for my Custom Command, which i copied from your post
add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
$HubServer = Get-TransportServer | sort-object -property Name
foreach ($server in $HubServer)
{
$queueInfos = Get-Queue -server $server -EA inquire -SortOrder -messagecount
foreach ($queueInfo in $queueInfos)
{
$message = "Identity: " + $queueInfo.Identity + "; DeliveryType: " + $queueInfo.DeliveryType
$Context.LogMessage($message, "Information")
}
}