Does it have to be a Word template? If you can get that into a plain text format this will be much easier. There may be a module that you can download online otherwise you are probably going to have to do some painful parsing after you import the file using “Get-Content”.
Do you have any code written? This sounds like something that ChatGPT could probably handle pretty well.
Yeah, I looked at the plain text of a .dotx file. That’s unparsable. The other poster probably has the right idea on how to get information out of the file.