Public/Functions/OSDCloud/Get-OSDCloudOSList.ps1

function Get-OSDCloudOSList {
    <#
    .SYNOPSIS
    Returns the Operating Systems used by OSDCloud
 
    .DESCRIPTION
    Returns the Operating Systems used by OSDCloud
 
    .LINK
    https://github.com/OSDeploy/OSD/tree/master/Docs
    #>

    
    [CmdletBinding()]
    param ()
    $Results = Get-Content -Path (Join-Path (Get-Module -Name OSD -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1).ModuleBase "Catalogs\operatingsystems.json") | ConvertFrom-Json
    $Results
}