Creating objects in PowerShell is… strange, to put it lightly–down right awful if you want to be realistic. But even if the syntax is terrible, objects are still nice to use. Here’s a quick primer on how to create and use an object in PowerShell.
I recently added PowerShell to my repertoire and noticed it has quite a few interesting quirks. The syntax is a bit odd as well, but overall it’s a pretty handy language to know and it definitely has a place in any developer’s toolkit.
Understanding the ins and outs of PowerShell did require quite a bit of Googling and practice, so I thought it might be nice to document some of what I found and put together a PowerShell for Programmers primer.