updated script for checking ntb battery status