So I was researching how to upgrade windows powershell and for some reason I was struggling a little bit.
Anyway Turned out that I found a youtube video that taught me how to do it.
here are the commands:
first cd into your root directory:
type:
cd /
check the version table:
$$PSVersionTable
Then type or copy and paste the command below:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Keep in mind you have to run it as an administrator.
Then Wallah, you have the newest powershell.
Here is the Youtube video: