This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the URL of the image to download | |
$url = "https://raw.githubusercontent.com/MortezaShoeibi/Arduino-Scripts/master/assets/sunglasses-in-the-dark.jpg" | |
# Specify the path where you want to save the downloaded image | |
$imagePath = "$env:TEMP\wallpaper.jpg" | |
# Download the image from the web | |
Invoke-WebRequest -Uri $url -OutFile $imagePath | |
# Check if the download was successful |