: Locate the file on your computer. If it is named script.ps1.txt , rename it to script.ps1 . You may need to enable "File name extensions" in your folder view settings to see and change the suffix.
: Web servers (like IIS) often treat .ps1 as a restricted file type. By adding .txt , the server can serve the file as a standard text document. Some browsers may also append .txt automatically during download if the site’s configuration is strictly set to "text/plain". 2. How to Download and Use a PS1 Script Download Ps1 txt
: You can right-click the .ps1 file and select Run with PowerShell . : Locate the file on your computer