Update Powershell Version -
switch ($os) "Windows" $pwshPaths = @( "$env:ProgramFiles\PowerShell\*", "$env:LocalAppData\Microsoft\PowerShell\*" ) "macOS" $pwshPaths = @("/usr/local/microsoft/powershell/*") "Linux" $pwshPaths = @("/opt/microsoft/powershell/*")
function Configure-AutoUpdates $configPath = "$env:APPDATA\PowerShell\update-config.json" update powershell version
function Install-OnWindows param( [string]$InstallerPath, [string]$Version ) update powershell version