bash/phq0.m4: add functions for thinkpad acpi battery control

Signed-off-by: Andrew Turner <andrewjamesturner0@gmail.com>