Command to update powershell:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Run and follow setup instructions.