UDIGioveCmd.psm1
|
$moduleRoot = $PSScriptRoot # List all DLLs to load $assemblies = @('UDIGioveCmd.dll') foreach ($dll in $assemblies) { $dllPath = Join-Path $moduleRoot $dll if (Test-Path $dllPath) { # Load DLL into PowerShell try { Import-Module $dllPath -ErrorAction Stop Write-Verbose "Loaded $dll" } catch { Write-Warning "Failed to load $dll: $_" } } else { Write-Warning "$dll not found in module folder." } } |