UDCard Footer Parameter Error

I am getting the below error when trying to include -footer parameter in UDcard - is this not available?

image

Can you share your script? There are 2 parameter sets for UDCard so you might be mixing them. -Footer is supported.

Here you go.

  $footer = New-UDCardFooter -Content {
    New-UDButton -Id 'new-post' -Text "NEW POST" -Icon (New-UDIcon -Icon Newspaper -Size sm) -OnClick {
        Invoke-whatsnewEditor
    }
}
New-UDCard -Title "WHAT'S NEW" -TitleAlignment left -Elevation 1 -Content {
    $body
} -Footer $footer

You’re mixing the simple and advanced parameter sets. You’ll need to specify the header and body of the card: Card - PowerShell Universal

Ah,I thought there are interchangeable. Ok, thanks.