One liner, works instantly, no restart of explorer required.
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.ps1 -Name PerceivedType -Value text
Adventures in Powershell. These posts have been created as a record of the successful powershell commands I have used.
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.ps1 -Name PerceivedType -Value text