public string CmdletName(PSCmdletBase cmdlet)
{
string result = String.Empty;
if (null == cmdlet) return result;
result = cmdlet.GetType().Name;
if (result.Contains("Uia"))
result = result.Replace("Uia", "-Uia");
else if (result.Contains("Tmx"))
result = result.Replace("Tmx", "-Tmx");
else if (result.Contains("ESXi"))
result = result.Replace("ESXi", "-ESXi");
else if (result.Contains("TAMS"))
result = result.Replace("TAMS", "-TAMS");
else if (result.Contains("Dt"))
result = result.Replace("Dt", "-Dt");
else if (result.Contains("Tu"))
result = result.Replace("Tu", "-Tu");
else if (result.Contains("Se"))
result = result.Replace("Se", "-Se");
result = result.Replace("Command", "");
return result;
}