Public/Get-TrelloCustomField.ps1
function Get-TrelloCustomField { [CmdletBinding()] param ( [Parameter(Mandatory, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()] [Alias('Id')] [string]$BoardId ) begin { $ErrorActionPreference = 'Stop' } process { try { Invoke-RestMethod -Uri ("$script:baseUrl/boards/{0}/customFields?{1}" -f $BoardId, $trelloConfig.String) } catch { Write-Error $_.Exception.Message } } } |