This is a great find, it was so disappointing that this wasn't working correctly. Thanks very much Catatau.
I did have to make one change though to get it working. The powershell script needs to properly identify the Net-Adapter, on my machine the adapter was named differently. In powershell you can just run Get-NetAdapter to get the list of your adapters. Then in the script change the line.
Get-NetAdapter -Name "your wifi adapter's name here" | restart-netadapter