ng serve ng.ps1 cannot be loaded because running scripts is disabled on this system

If you are getting the following issue while running ng serve:

ng.ps1 cannot be loaded because running scripts is disabled on this system

the solution is to run the following command in Powershell:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Make sure you have opened the Powershell as Run as admin

Your issue will be fixed and this time ng serve command will work.