PSProxmox.psm1
# PSProxmox.psm1 # This file ensures that the required assemblies are loaded. # Get the module path $modulePath = Split-Path -Parent $MyInvocation.MyCommand.Path # Load Newtonsoft.Json.dll $newtonsoftPath = Join-Path -Path $modulePath -ChildPath "bin\Newtonsoft.Json.dll" if (Test-Path $newtonsoftPath) { Add-Type -Path $newtonsoftPath } |