System automation without arrays is almost unthinkable. Everywhere there is a list of entities to be worked on, chances are, the implementation uses arrays. PowerShell is no exception. PowerShell works with single-dimensional as well as multidimensional arrays. Multidimensional arrays are of two types: jagged and non-jagged. We will look into what they are shortly.
Another very important concept in PowerShell is that of hashtables. Think of hashtables as named arrays (or, more appropriately, associative arrays). Hashtables provide us with a very systematic way to handle arrays, which we will see in the last couple of recipes of this chapter.
Replace pwsh with pwsh-preview in all of the following instances of pwsh if you are using PowerShell (Preview).