There are some articles which describe the possible solutions to your issue.
You can try them to see if they could help.
Wi-Fi Network Disappears After Sleep/Wake/Hibernate in Windows 10
Windows 10 disconnects from Wi-Fi after Sleep Mode? Fix it now
8 Ways to Fix Wi-Fi Doesn’t Connect After Sleep in Windows 10
From Windows 10 build 17063 and later, ‘Curl’ is now included, so that you can execute it directly from Cmd.exe or PowerShell.exe.
curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
Release-Date: 2017-11-14, security patched: 2019-11-05
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp