I needed to run this command:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Reference:

https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system