The Count property returns a long value that is the number of items in the collection. The counting starts at zero. You can use this value to loop through the collection by iterating from zero to the value of Count minus one.
intCountNumber = objCommand.Properties.Count
For Each objProperty In objCommand.Properties
' place code here to manipulate each item in collection
Next
You can also use the VB/VBScript For Each ... Next statement.