Check the current power source type (Battery or AC/UPS). powerstatus is a command-line tool written in Swift to determine the current power source of a macOS device (battery, AC, or UPS) and exit with ...