To update powershell with powershell you, run the command:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
That's it.
I'm using Windows Terminal btw.
NOTE: This does not update the modules external to PS. You'll have to update those on their own.