ok, i created a file called rainy.ps1 with the above code.
I right-clicked on it and selected the "Run with PowerShell" option, but nothing happened
In ISE if I run the file I get the following error:
File C:\Users\Chris\Desktop\rainy.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:0 char:0
I tried this solution:
To run an unsigned script:
1. Save the script file on your computer.
2. Click Start, click My Computer, and locate the saved script file.
3. Right-click the script file, and then click Properties.
4. Click Unblock.
But I cannot see any Unblock there