# PowerShell script to download a list of files that have a predictable number pattern for ($i=1; $i -le 10; $i++) { $startTime = (Get-Date) # Download files that have the naming format File1.txt, File2.txt etc.. (new-object System.Net.WebClient).DownloadFile("http://example/file$i.txt","C:\temp\file$i.txt") $endTime = (Get-Date) # Echo Time taken "Time taken to download file$i : $(($endTime-$startTime).totalseconds) seconds" }