PSInfisicalAPI.psm1
|
$BinaryPath = [System.IO.FileInfo][System.IO.Path]::Combine($PSScriptRoot, 'bin', 'PSInfisicalAPI.dll') Import-Module -Name $BinaryPath.FullName $TypesPath = [System.IO.FileInfo][System.IO.Path]::Combine($PSScriptRoot, 'PSInfisicalAPI.Types.ps1xml') $FormatPath = [System.IO.FileInfo][System.IO.Path]::Combine($PSScriptRoot, 'PSInfisicalAPI.Format.ps1xml') if ([System.IO.File]::Exists($TypesPath.FullName)) { Update-TypeData -PrependPath $TypesPath.FullName -ErrorAction SilentlyContinue } if ([System.IO.File]::Exists($FormatPath.FullName)) { Update-FormatData -PrependPath $FormatPath.FullName -ErrorAction SilentlyContinue } |