Hello
Thank you for your question and reaching out.
There are no CmdLets or commands for editing. Although it is used to create a GPO, a template is not a GPO.
The XML technique is the simplest if you are a GP expert. Find articles on altering GPO files online.
--If the reply is helpful, please Upvote and Accept as answer--