Problem with curl.exe (Windows) and package installation

I am confused also. There are so many strange things going on. What I was able to reproduce instantly was the usage of c:\Windows\system32\curl.exe (Windows 10) if powershell is not available, together with certificate problems. So I jumped on this.