You can write a PowerShell script for this requirements, but that means a lot of work for you; don't expect us to do it for you.
See
https://devblogs.microsoft.com/scripting/powertip-use-windows-powershell-to-open-word-document/
https://www.powershellgallery.com/packages/PSWriteWord/1.1.14