a shell script to get battery percentage