# Define the location of your URL list in the current directory[/align]
[align=center]$urlListPath = ".\urls.txt"[/align]
[align=center]# Set the download folder to the current directory[/align]
[align=center]$downloadFolder = (Get-Location).Path[/align]
[align=center]# Read each URL from the file[/align]
[align=center]foreach ($url in Get-Content $urlListPath) {[/align]
[align=center] # Extract the file name from the URL[/align]
[align=center] $fileName = Split-Path $url -Leaf[/align]
[align=center] # Define the full path for the downloaded file[/align]
[align=center] $outputPath = Join-Path $downloadFolder $fileName[/align]
[align=center] # Download the file[/align]
[align=center] Invoke-WebRequest -Uri $url -OutFile $outputPath[/align]
[align=center] Write-Output "Downloaded $fileName"[/align]
[align=center]}[/align]
[align=center]