With Notepad you have to change the Save As Type to "All Files". Otherwise it will save the file as New-Wow.ps1.txt. Not the friendliest behavior...

You can also change the type in Windows Explorer if you enable the show file extensions for known types option. (Control Panel | Folder Options | View -> Uncheck "Hide file extensions for known types")