Please consider removing the host version limitation of 2.0. This is related to what IDE you are running regardless of the PowerShell version. VS code is host version 1.84 and will not load this module.
Error seen
'C:\Users....\WindowsPowerShell\Modules\kemp.loadbalancer.powershell\7.2.43.0\kemp.loadbalancer.powershell.psd1' requires a minimum Windows
PowerShell host version of '2.0' to run.
in the .PSD1...
Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = '2.0'
I had to change this to get it to load in my scripts.
PowerShellHostVersion = ''
Please consider removing the host version limitation of 2.0. This is related to what IDE you are running regardless of the PowerShell version. VS code is host version 1.84 and will not load this module.
Error seen
'C:\Users....\WindowsPowerShell\Modules\kemp.loadbalancer.powershell\7.2.43.0\kemp.loadbalancer.powershell.psd1' requires a minimum Windows
PowerShell host version of '2.0' to run.
in the .PSD1...
Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = '2.0'
I had to change this to get it to load in my scripts.
PowerShellHostVersion = ''