I installed oh-my-posh but the profile script for PowerShell was not working correctly. I found out PowerShell execution policy is restricted by default. I have changed the setting following Microsoft's About Execution Policy page.
What is the security threat of unrestricted execution?