title: downloading multiple files with "Invoke-WebRequest"
body: <p>So i've just begun to play around with powershell and i'm trying to find a way to pass arrays through Invoke-WebRequest so that i can download multiple files. I realize it can only handle strings, so this is what i've come up with.</p>
  
  <pre><code>$urls = Get-Content .\urls.txt
  $outputs = Get-Content .\outputs.txt
  foreach ($url in $urls) {foreach ($output in $outputs){Invoke-WebRequest -Uri $url -OutFile $output}}
  </code></pre>
  
  <p>Now, this snippet works, but since i've nested two foreach'es, it downloads the content twice.</p>
  
  <p>I want it to the same thing it's doing now, but without the 'double download'. </p>
  
  <p>I appreciate any help i can get.</p>