Functions/Get-InstalledPythonVersions.ps1

. "$PSScriptRoot\Get-PythonUtilitiesConfigValue.ps1"

function Get-InstalledPythonVersions(){
    $installRoot = Get-PythonUtilitiesConfigValue -Key 'PythonInstallRoot'
    
    foreach ($pathObj in Get-ChildItem $installRoot){
        Write-Host $pathObj.Name.Replace("python", "")
    }
}