a utility to check the bat level from the command line