I am a beginner... Here is what I am trying to accomplish: $id=get-ntnxcluster $TotalTb=$id.usageStats.'storage.capacity_bytes' [int]$Total=$TotalTb/1tb $AvailableTb=$id.usageStats.'storage.free_bytes' [int]$Available=$AvailableTb/1tb $FreeTb=$id.usageStats.'storage.usage_bytes' [int]$Free=$FreeTb/1tb My problem is that $TotalTb, $AvailableTb and $Freetb have 2 entries so I am only getting the first entry in $Total,$Available,$Free divided.