I have a script that does something like this:
function Do-Something { Param( $Properties ) #(1) DoSomething $Properties.NewThing