title: Assigning properties value to an array in powershell
body: <p>I can use powershell to get the size of a queue using <code>Get-MsmqQueue -QueueType Private | Format-Table -Property BytesInQueue</code>.  And obviously I can assign the result of that to a variable i.e. $a = blah, but how do I assign the value of each queues BytesInQueue property to an array so that I can do math against the values?  For example say I want to know the total of all BytesInQueue, and/or the min/max values.  I vaguely understand arrays, but I haven't quite figured out how to extract the value from a property and assign it to an array.  Any help would be greatly appreciated.</p>