Since this question continues to attract responses that are either refuted by the question body or don\'t address the actual problem, please read th
I was having the same issue and fixed it by changing the default program to open .ps1 files to PowerShell. It was set to Notepad.