Open with Powershell--Associate .ps1 File Type Extension with PowerShell

The .ps1 extension is also known as a file type.

 

https://www.lifewire.com/how-to-change-file-associations-in-windows-2624477

Win 11 Interface

  1. Open Control Panel

  2. Select Programs > Default Programs

  3. Select Associate a file type or protocol with a program

  4. Default apps

  5. Choose default apps by file type

  6. Select .ps1 under the Name column on the left.

  7.