How to get the remaining battery power through OpenSSH's shell command after IOS jailbreak?

I want to connect SSH through Red-Node to get the remaining power to realize automatic charging