Public/Get-HuduAssetLayoutFieldID.ps1

function Get-HuduAssetLayoutFieldID {
    Param (
        [Parameter(Mandatory=$true)]
        [String]$Name,
        [Alias("asset_layout_id")]
        [Parameter(Mandatory=$true)]
        [Int]$LayoutId
    )
    
    $Layout = Get-HuduAssetLayouts -layoutid $LayoutId
    
    $Fields = [Collections.Generic.List[Object]]($Layout.fields)
    $Index = $Fields.FindIndex( {$args[0].label -eq $Name} )
    $Fields[$Index].id
    
}