WIndows powershel ps1 file extension not being recongized

If filename is something like name.ps1.txt then this is still seen as a txt and will open with default application for txt extension. You would have to rename the file and remove the .txt part. In PowerShell from the same folder you can do Rename-Item -Path ‘name.ps1.txt’ -NewName ‘name.ps1’

Read More