Hi @Sparky I was interested in this too after I saw your post. So I was thinking look at the documentation which I saw this parameter is passed as an object. Then I found this example:-
which shows storing these as objects to pass to the parameter. This should hopefully answer your question create the object as a variable then pass it that way instead of doing it on the cmdlet itself…Im thinking you would need to wrap the whole thing in a script block if you didn’t want to pass it as a variable…