Build/Get-AppFromFTP.ps1

function Get-AppFromFTP{

    param (
            [Parameter(Mandatory=$true)]
            [String]$AppName,
            [Parameter(Mandatory=$true)]
            [version]$PlatformVersion
        )

    $artifactPath = Create-TempDirectory
    Download-AppPackage -Name $AppName -PlatformVersion $PlatformVersion.Major -LocalPath $artifactPath 6>$null | Out-Null
    Get-ChildItem -Path $artifactPath
}

Export-ModuleMember -Function Get-AppFromFTP