I have a simple script which only prints "hello" to the screen.
When I run it from my desktop (for example) - it's working
When I run it from a specific folder under, c:\specific_folder
it opens the "How do you want to open this file" window and even after I choose "Windows Powershell" it just keep popping up and script never executed..
I'm using Powershell version 5.1 I checked the permissions on folder properties and give everyone a full control but no change..
EDIT: the script is:
Write-output "Hello"
pause
I run it by double clicking it (manually).
Can you help? Thanks