Trying to load module and fails due to host version
I created the custom environment and ran the script, but it just sits there running until i cancel the job. Tried adding some additional test output and verbose messages, but it just sits there. Tried with both powershell.exe and the full path.
Looking at the psd1 file included with the module, it looks like you are correct, its specifically looking for PowerShellHostVersion of 2.0 as well as PowerShellVersion of 2.0. Since the module is signed but that file is editable, I was able to edit the host version to 1.0 and I'm able to load it. I'll just need to leave some breadcrumbs in this script if I ever update the module and this happens again.
Thanks for the suggestion on what to look for.
Trying to load module and fails due to host version
The current PowerShell host is: 'Universal Automation Host' (version 1.0). The module 'C:\Program Files\PowerShell\Modules\Kemp.LoadBalancer.Powershell\Kemp.LoadBalancer.Powershell.psd1' requires a minimum PowerShell host version of '2.0' to run.
Running 2026.2.0. Running this script specifically in Windows PowerShell 5.1 environment. Script is literally just loading the module and then Get-Module.
Not sure how to get around this.