Expanded Battery AutoIt UDF, based on Yashied's work