A problem occurred during program execution. Set-executionpolicy -scope currentuser. powershell connection error. to change the execution policy to unrestricted, type the following command in powershell. install-module speculationcontrolimport-module speculationcontrolset-executionpolicy unrestrictedget-speculationcontrolsettings.