Script to monitor the power state of hard drives