Hello,
By default script execution is disabled in PowerShell. This is a security setting that prevents your computer from running PowerShell scripts by default, so that you will (hopefully) learn about the potential security risks of running downloaded scripts and be aware of the potential consequences before you enable running Powershell scripts on your system.
======================================>>>
WARNING: File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics\PSDiagnostics.psm1 cannot be loaded
because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
======================================>>>
To fix this error and enabled script execution, please run following command
Run the command powershell# Set-ExecutionPolicy RemoteSigned
======================================>>>
Now, try to run script again, it should work this time.
Thank you,