Summary: Learn to troubleshoot a Windows PowerShell script for Microsoft Word automation.
When you test or develop your Windows PowerShell script for Word automation, make sure that you quit the
Word.Application object and close the Word document. Otherwise, the document will be locked. This is
especially true if you set the Application.Visible property to $false.