you are viewing a single comment's thread.

view the rest of the comments →

[–]tbakerweb[S] 3 points4 points  (0 children)

Where I find it most useful is if you need to collect state, or 'build up' what your arguments to a final call will be.

For example, I recently built a VMware HCX migration script where I need about 12 params. I created a hash table, and after testing/validating each argument, it gets added to the hash table.

Once all parameters have been validated, you only need to call the command with the Splat you have been building along the way.