Summary: Learn how to use Windows PowerShell to open a Microsoft Word document.
How can I open a Word document with Windows PowerShell?
Use the New-Object cmdlet:
$Filename='C:\HappyBirthdayEd.docx'
$Word=NEW-Object –comobject Word.Application
$Document=$Word.documents.open($Filename)
You can now programmatically access methods and properties to edit the Word document.