Creates an alias for the type 'System.IO.File' named 'file'
Creates an alias for the type 'System.IO.Path' named 'path'
#>[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessForStateChangingFunctions","")][CmdletBinding(DefaultParameterSetName='Name')]Param([Parameter(Mandatory=$true,Position=0,ParameterSetName='Name')][string]$AliasName,[Parameter(Mandatory=$true,Position=1,ParameterSetName='Name')][string]$TypeName,[Parameter(Mandatory=$true,Position=0,ParameterSetName='Hashtable')][hashtable]$Mapping)begin{# Obtain a reference to the TypeAccelerators type$TypeAcceleratorType=[psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")}process{foreach($keyin$Mapping.Keys){$TypeAcceleratorType::Add($key,$Mapping[$key])}if($AliasName){$TypeAcceleratorType::Add($AliasName,$TypeName)}}end{}}