Run a PowerShell script from desktop
Posted on 2013-12-10
I am experimenting with PowerShell. I want to run a PowerShell script from my desktop. I noticed that if I double-click on the script then it opens with Notepad or the PowerShell editor. What do I need to do so that if I double-click on TEST.PS1 that it runs in PowerShell rather than open up in the editor or Notepad?
I am looking for other uses for running PowerShell, and want to start creating more scripts. So, if you have any additional advice and hyperlink examples on how to start and run PowerShell scripts from the desktop and the Windows Command prompt I would appreciate it.
I am testing under Windows 7 and 8.1