I love this script! Thanks again for putting all this effort into making such a wonderful script. I found a few typo/bugs at line 195, 209, and 517 here is the code:
if(type="HP") {
...
}
I was getting errors saying "Expected ), found = (Universal_recovery.ash, line 195)"
so I changed it to...