Definition: Returns a Variantcontaining an array.
In VBScript it's pretty easy to create an array: all you have to do is dimension a variable as an array, or use the Arrayfunction to add multiple values to a variable. Believe it or not, in Windows PowerShell it ’s even easierto create an array; all you have to do is assign multiple values to a variable, no special functions or methods are required. For example, this command assigns all the colors of the rainbow to a variable named $a:
When you run this command and then echo back the value of $ a youshould get the following: