# Specify the URL of the text file $url = "https://pastejustit.com/raw/s2-82862-8" # Define the path where the file will be saved locally $localFilePath = "$env:TEMP\downloaded_file.txt" # Download the file from the URL Invoke-WebRequest -Uri $url -OutFile $localFilePath # Open the downloaded file in Notepad Start-Process "notepad.exe" $localFilePath