Public/Get-CitrixApplicationDeliveryManagementFeed.ps1

Function Get-CitrixApplicationDeliveryManagementFeed {
    <#
        .SYNOPSIS
            Gets the current available Citrix Application Delivery Management downloads.

        .DESCRIPTION
            Reads the public Citrix Application Delivery Management web page to return an array of platforms and the available versions.

        .NOTES
            Author: Aaron Parker
            Twitter: @stealthpuppy
        
        .EXAMPLE
            Get-CitrixApplicationDeliveryManagementFeed

            Description:
            Returns the available Citrix Application Delivery Management downloads.
    #>

    [OutputType([System.Management.Automation.PSObject])]
    [CmdletBinding()]
    Param()

    # Get application resource strings from its manifest
    $res = Get-FunctionResource -AppName "CitrixFeeds"
    Write-Verbose -Message $res.Name

    # Read the feed and filter for include and exclude strings and return output to the pipeline
    $gcfParams = @{
        Uri     = $res.Get.ApplicationDeliveryManagement.Uri
        Include = $res.Get.ApplicationDeliveryManagement.Include
        Exclude = $res.Get.ApplicationDeliveryManagement.Exclude
    }
    $Content = Get-CitrixRssFeed @gcfParams
    If ($Null -ne $Content) {
        Write-Output -InputObject $Content
    }
}