Get-Tasks/Get-KBFAttachment.ps1

function Get-KBFAttachment {
    <#
        .SYNOPSIS
        Grab all attachments from a task
    #>

    param (
        [Parameter(Mandatory=$true)]
        [string]$ApiToken,
        [Parameter(Mandatory=$true)]
        [string]$taskId        
    )

    Invoke-KBFApi -Method "Get" -ApiToken $ApiToken -Command "tasks/$taskId/attachments"

}