Public/Node/Get-NVMLatestNodeVersionInstalled.ps1

function Get-NVMLatestNodeVersionInstalled {
    [CmdletBinding()]
    param ()
    $Versions = Get-NVMNodeVersions
    $Latest = ($Versions)[0]
    if(!$Latest){
        Write-Error "Can't determine the latest node version installed with NVM."
        return $null
    }
    $Latest
}