open cmd with accessories with run as administer option.
When command prompot open. Write powershell. And press enter.
Powershell is opened. Now write set-executionpolicy unrestricted. It will run successfully.
A practitioner’s musings on Dynamics 365 Finance and Operations