Question: what extension for powershell script?
Answer: A PowerShell script is simply a text file with a . ps1 extension that contains a list of commands PowerShell should execute. However, PowerShell's secure by default philosophy prevents all scripts from running, so double-clicking a PowerShell script from Windows Explorer won't execute it.