Today I’m gonna explain Powershell arrays, which is the most important part of the scripting and coding in Powershell, also having arrays in your code could help you much and ease your coding progress.
Powershell arrays provides a structured data which is combined into an array and stores a fixed-size sequential collection of elements of the any type.
In order to assign an Array, you must create a variable to include the arrays data in it, and you can specify the type of array the variable can reference. Here is the syntax for declaring an array variable.
$C = 16,2,5,1,60,3
$R = 1..6