This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################################################### | |
| # # | |
| # Script to check battery state periodically and alert if it is # | |
| # going to outside of the desired range (%40-%80) by default. # | |
| # # | |
| # Usage: # | |
| # # | |
| # # To alert if x<=40 or x>=80, and check each 15 sec # | |
| # # | |
| # .\battery.ps1 40 80 15 # |