I don't see anything wrong with the script. And from ProfileMatic's logs it seems like it's being run. How have you come to the conclusion it doesn't work? It's good to remember that restarting bme does not always fix the battery level when 4% bug occurs. So if it didn't work once, you should try to reproduce the problem again to make sure. And you can try manually running the action also to make sure.