@SamuriHL - many thanks for your reply.
Could anyone who understand this matter help me understand what that script does, and why.
The script appears to do exactly 2 things, 1) transfer a particular image file (recovery-clockwork-6.0.3.6-jfltexx.img) into the phone and 2) install a phone app called SuperSU. Am I right so far?
I am unsure why the SuperSU is included, and maybe I don't need that. It appears, from its Google Pay Store description, that SuperSU itself requires root and so I infer that the app plays no part in causing the rooting, so maybe it is useful for purposes for which I have no need.
If the rooting is just caused by the installation of that image file then these questions:
1) Is there some way I can first extract and save the existing image so that I can run the script using the existing file in order to reverse the rooting after I have fixed platform.xml? Else, can I fetch a copy of that original image file from somewhere else for this purpose?
2) If I leave the phone rooted will it still be offered and be able to receive updates, such as Kitkat, in the same manner that unrooted phones do? I appreciate that KitKat itself may cause yet more difficulties, so next time I'll wait before accepting an offer of a "gift" from Google.
3) I know that the script languages for different versions of Windows have differences. Does this RUN.bat execute correctly under XP?
Thanks for any comments.