I have written a very simple PowerShell script called "open backup.ps1". It just goes:
start ms-settings:backup
When I run it from the Powershell ISE or choose "Run with PowerShell" in Windows Explorer, it executes successfully and opens the backup settings, but when I run it by double-clicking it or by choosing "open with" and then PowerShell, it fails to do what it is supposed to.
How do I get it so that it will run correctly by default in Windows, and especially when it is pinned to the taskbar, which is where I want to keep the script?