$installerPath = Join-Path $tempPath "PowerShell-$targetVersion$installerExtension"

.DESCRIPTION This script checks for, downloads, and installs the latest version of PowerShell. Supports Windows, macOS, and Linux with appropriate package managers.

<# .SYNOPSIS Wrapper script with additional features for PowerShell update management. #>

$PSVersionTable.PSVersion