Get the current PS Version Table
Install Get-Version from the PowerShell Gallery
Get-Version
Get the current PS Version Table
PS C:\> Get-Version
This command returns the current PowerShell Version Table
Current PowerShell Version Table
This function works in with PowerShell 5 & PowerShell 7