Make fetch-thirdparty-deps.ps1 work on more Windows platforms.
Merge pull request #7205 from ScottNZ/nuget

Make fetch-thirdparty-deps.ps1 work on more Windows platforms.