Dude, where's my variable? Understanding scoping in Universal Dashboard

Nope. That was incorrect. Ive updated the post. You can do that with controls like New-UDButton but not with New-UDElement. Honestly, it’s a bit of a design flaw. New-UDElement has an ArgumentList parameter itself. I think that other controls should be more like New-UDElement but they are not.