Here is a simple script that can be used to get the Battery Status on laptop running ubuntu.
#!/bin/bash upower -i /org/freedesktop/UPower/devices/battery_BAT0
Just save the above into your /home/[user]/bin/ folder. I used BatteryStatus as the name, but any name would work. Run chmod +x BatteryStatus. And now you can just open a terminal window and type in BatteryStatus (or whatever name you gave the file) to get some details about the battery:
max@E6220:~$ BatteryStatus native-path: BAT0 vendor: Samsung SDI model: DELL TVMVN serial: 6853 power supply: yes updated: Wed 25 Jan 2017 15:58:53 NZDT (98 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: fully-charged warning-level: none energy: 62.16 Wh energy-empty: 0 Wh energy-full: 62.16 Wh energy-full-design: 62.16 Wh energy-rate: 0.0111 W voltage: 12.419 V percentage: 100% capacity: 65.5536% technology: lithium-ion icon-name: 'battery-full-charged-symbolic' max@E6220:~$