Is the WiFi adaptor configured with both IPv4 and IPv6 protocols? Are both configured to obtain IP addresses and DNS addresses automaticaly?
Did the adaptor get a new IP address when it connected to the WiFi hotspot?
Does running ipconfig /renew or ipconfig /renew6 change anything?
Do you have the problem with all hotspots, or just one?
This isn't a PowerShell problem. Why apply that tag to your question?