Thanks for getting back Igor.
Tried again, installed your script in TWRP, but this time before rebooting I chose WIPE CACHE/DALVIK option and then booted to system.
Your reinstall Quick Apps script this time now seems to have worked.
Thanks. Maybe the others too might find the same success by wiping cache/dalvik after installing your script and before rebooting.