code365scripts.psm1

<#
.SYNOPSIS
    安装或更新最新版本的PowerShell
.DESCRIPTION
    安装或更新最新版本的PowerShell
#>

function Update-Powershell {
    [Alias("up")]
    [CmdletBinding()]
    param ()


    Invoke-Expression "& {$(Invoke-Restmethod https://aka.ms/Install-PowerShell.ps1)} -Quiet -AddExplorerContextMenu"
}