Functions/Update-PowerShell.ps1

function Update-PowerShell {
    # Update PowerShell with the latest version
    Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI"
}