This script stopped working for me when I replaced my Wi-Fi card and also when I started using WSL2. This was due to two reason, first, the WLANManager.ps1 script is detecting "WiFi", but not "Wi-Fi" (Note: there's a dash in the 2nd one). When I added this into the script in the two places where "WiFi" is located, it properly detected the WLAN connection.
The 2nd issue, in the Test-Connection function of the PSModule-WLANManager.psm1 module, it is detecting Hyper-V virtual adapters as wired adapters. Adding -and ($_.Description -notlike "*Hyper-V*") to all the conditions fixed this issue.
After making these changes, I reinstalled the WLANManager and all is good.
See attached files to see the changes I made.
WLANManager-Fixed-20200904.zip