public/Get-OSDCloud.ps1

function Get-OSDCloud {
    [CmdletBinding()]
    param ()

    # Clear previous errors
    $Error.Clear()
    Write-Verbose "[$(Get-Date -format G)][$($MyInvocation.MyCommand)] Start"

    # Retrieve module details
    $ModuleName = $($MyInvocation.MyCommand.Module.Name)
    Write-Verbose "[$(Get-Date -format G)][$($MyInvocation.MyCommand.Name)] ModuleName: $ModuleName"
    $ModuleBase = $($MyInvocation.MyCommand.Module.ModuleBase)
    Write-Verbose "[$(Get-Date -format G)][$($MyInvocation.MyCommand.Name)] ModuleBase: $ModuleBase"
    $ModuleVersion = $($MyInvocation.MyCommand.Module.Version)
    Write-Verbose "[$(Get-Date -format G)][$($MyInvocation.MyCommand.Name)] ModuleVersion: $ModuleVersion"

    # Validate global variable dependencies
    if (-not $PSOSDCloud -or -not $PSOSDCloud.links) {
        Write-Error "The global variable '$PSOSDCloud' or its 'links' property is not defined. Please ensure it is initialized before running this function."
        return
    }

    # Display OSDCloud team information
    Write-Host -ForegroundColor DarkCyan 'OSDCloud Team'
    Write-Host -ForegroundColor DarkGray "David Segura $($PSOSDCloud.links.david)"
    Write-Host -ForegroundColor DarkGray "Gary Blok $($PSOSDCloud.links.gary)"
    Write-Host -ForegroundColor DarkGray "Michael Escamilla $($PSOSDCloud.links.michael)"
    Write-Host

    # Display upcoming events
    Write-Host -ForegroundColor DarkCyan 'NWSCUG: OSD 2025 Preview'
    Write-Host -ForegroundColor DarkGray "March 28 2025 $($PSOSDCloud.links.nwscug)"
    Write-Host
    Write-Host -ForegroundColor DarkCyan 'MMSMOA: OSDCloud and OSDWorkspace'
    Write-Host -ForegroundColor DarkGray "May 5-8 2025 $($PSOSDCloud.links.mmsmoa)"
    Write-Host
    Write-Host -ForegroundColor DarkCyan 'WPNinjasUK: OSDCloud and OSDWorkspace'
    Write-Host -ForegroundColor DarkGray "June 16-17 2025 $($PSOSDCloud.links.wpninjasuk)"
    Write-Host
    Write-Host -ForegroundColor DarkCyan 'WPNinjas: OSDCloud and OSDWorkspace'
    Write-Host -ForegroundColor DarkGray "September 22-25, 2025 | $($PSOSDCloud.links.wpninjasch)"
    Write-Host

    # Display additional resources
    Write-Host -ForegroundColor DarkCyan 'GitHub: OSDCloud'
    Write-Host -ForegroundColor DarkGray $($PSOSDCloud.links.github)
    Write-Host
    Write-Host -ForegroundColor DarkCyan 'PowerShell Gallery: OSDCloud'
    Write-Host -ForegroundColor DarkGray $($PSOSDCloud.links.powershellgallery)
    Write-Host
    Write-Host -ForegroundColor DarkCyan 'Discord: WinAdmins os-deployment'
    Write-Host -ForegroundColor DarkGray $($PSOSDCloud.links.discord)
    #=================================================
    # End the function
    $Message = "[$(Get-Date -format G)][$($MyInvocation.MyCommand.Name)] End"
    Write-Verbose -Message $Message; Write-Debug -Message $Message
    #=================================================
}