I just combined the 2 so if it's an Intel Mac it will just read the
battery status and M1 with having the status and
capacity.arch=$(/usr/bin/arch)if [ "$arch" == "arm64" ];
thencapacity=$(system_profiler SPPowerDataType | grep "Maximum
Capacity:" | ...