Nuget install / update error: Failed to initialize the PowerShell host

While using NuGet for installing, updating and maintaing libraries into your projects, you would have encountered following error: Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first. Following error was encounted when I…