@{} declares a HashTable, while @() declares an array
you can use
$user.count
to find the length of you HashTable .
If you do:
$user | get-member
You can see all the methods and properties of the object.
$user.gettype()
return the type of object you have.
source share