Hi @med
Please check if $env:PSModulePath contains C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules.
If not, add them to the system variable "PSModulePath" in Environment Variables in the System Properties window.
Also, it could be PowerShell's default security level, which (IIRC) will only run signed scripts.
Try typing this:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
That will tell PowerShell to allow local (that is, on a local drive) unsigned scripts to run. Then try executing your script again.
I hope this answers your question.
Thanks.
--
--If the reply is helpful, please Upvote and Accept as answer--