New-UDForm with Script - ButtonVariant and SubmitText

Hello,

when I use “New-UDForm” with “-Script”, I can use “-ButtonVariant” and “-SubmitText” as well, but it doesn’t change anything.

I looked at the ParameterSets of “New-UDForm”, but can’t see a restriction there.

What am I doing wrong?

Product: PowerShell Universal
Version: 5.0.16