How to enable execution of PowerShell scripts?

When I try to execute my PowerShell script I get this error:

.\test.ps1 : File D:\test.ps1 cannot be loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\test.ps1
+ ~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

[mai mult...]

Automatically Close Programs at Specific Time

Scheduling apps for Windows 10 aren’t rare. You’ll find quite a few options are available if you’re looking to automate something but in most cases, the task scheduler will still outshine them. If you need to terminate or close, or quit an app on your Windows 10 PC at a given time, you can do so with task scheduler and a simple batch script.

[mai mult...]