try this also, it work for me on Apple Silicon but not the above method-
ioreg -l| grep -e '"CurrentCapacity" =' -e '"MaxCapacity" =' -e '"CycleCount" =' -e '"model" = '