Hello, I need to convert a bash script into PowerShell. The script has a line where it uses "curl" in this way:
curl -x proxy:80 -k https://xxxxxxxxxxxxxx.php -d strFrom= -d strCountry= -d strCode= > /dir1/dir2/download.xml
I'm using Invoke-WebRequest to translate this and it's pretty ok, except for the -d strFrom= -d strCountry= -d strCode= part for which I cannot find the right arguments. The bash script is telling to download the most recent (-d strFrom=) download.xml file available, from any country (-d strCountry=) and for all currency (-d strCode=). Any idea on how to translate that into Invoke-WebRequest? If I use this line below, the xml file downloaded is empty, while the curl line downloads a file with content:
Invoke-WebRequest -Proxy proxy:80 -Uri "https://xxxxxxxxxxxxxx.php" -Method Get -OutFile /dir1/dir2/download.xml