functions/internal/Add-PackageTypes.ps1
function Add-PackageTypes { param( [Parameter(Mandatory = $true)] [string]$LibsDirectory ) process { try { foreach ($path in (Get-ChildItem $LibsDirectory | Where-Object { $_.Name -like '*.dll' } | Select-Object -ExpandProperty FullName)){ Add-Type -Path $path -ErrorAction Stop } } catch { Write-Error $_.Exception } } } |