Arrays are a list of objects such as strings and numbers, but they can contain any type of object you set up. Arrays can even contain a mix of different types of objects making them perfect for storing lots of values or objects in your scripts that need to be looped through or referred to later. Arrays and other types of lists in PowerShell are often referred to as collections, “a collection of objects.”
There are two common types of arrays you will see in PowerShell scripts. The first is the [Array] object, which is easy to use and of a fixed ...