cannot be loaded because running scripts is disabled on this system

C++
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Set-ExecutionPolicy RemoteSignedSet-ExecutionPolicy RemoteSignedSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy UnrestrictedPS C:\> Set-ExecutionPolicy RemoteSigned 
Get-ExecutionPolicy -List | Set-ExecutionPolicy UnrestrictedSet-ExecutionPolicy RemoteSigned

Source

Also in C++: