private/Get-SimplifiedType.ps1
function Get-SimplifiedType { [CmdletBinding()] param ( [parameter(Mandatory = $true)] [String] $Type ) $simtype = $type if ($type -like 'PS*') { $simtype = $type.Substring(2) } if ($simtype -like '*IntegrationRuntime') { $simtype = 'IntegrationRuntime' } #Write-Debug "Get-SimplifiedType($Type) = $simtype" return $simtype } |