<t>This is a powershell security policy, to fix it, run Powershell as administrator and run the following<br/>
<br/>
PS C:\> Set-ExecutionPolicy RemoteSigned <br/>
<br/>
```<br/>
<br/>
If you don't want to run the command as an administrator but just for the current user, you can add a scope like below<br/>
<br/>
```<br/>
PS C:\> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser<br/>
<br/>
```<br/>
<br/>
The stricter the policy, the more secure your system becomes.<br/>
<br/>
You can change RemoteSigned to other options like: `Restricted`, `AllSigned`, `RemoteSigned`, `Unrestricted`<br/>
<br/>
Source: [https://tecadmin.net/powershell-running-scripts-is-disabled-system/](https://tecadmin.net/powershell-running-scripts-is-disabled-system/)<br/>
<br/>
Alternatively you can modify `C:\Program Files\PowerShell\7\powershell.config.json` using a text editor and add or modify the following section.<br/>
<br/>
```<br/>
{<br/>
....<br/>
<br/>
"Microsoft.PowerShell:ExecutionPolicy": "RemoteSigned"<br/>
}<br/>
<br/>
```<br/>
<br/>
You can also run your script without modifying security policies by using the `command prompt` as noted by [ztom's answer here](https://stackoverflow.com/a/69987387/4393351).</t>