Backport of "Download using powershell on Windows and rework download func" into 1.20
Backport of !937 (merged) "Download using powershell on Windows and rework download func".
Commits:
Backport of !937 (merged) "Download using powershell on Windows and rework download func".
Commits: