I didn't think I'd care this much about a command, but here we are.
The built-in report provides insight into your laptop's battery status, including whether it's time for a replacement.