add avgpower script