Example1:
Note 2: The comma is also used so separate items in an array {0,-30}
Example2:
To create an array, we create a variable and assign the array. Arrays are noted by the “@” symbol. Let’s take the discussion above and use an array to connect to multiple remote computers: $strComputers = @(“Server1″, “Server2″, “Server3″)
So, which one is correct or what is the difference ?
New-Object PSObject -Property @{array='a','b','c'}