Windows 7
PowerShell version 2.0
Get-WimObject Win32_Process …
only returns one process instance of MS Word. I need to get all of the documents opened by MS Word and close 1 of N documents based on the name of the file being edited. The PowerShell script also needs to close the 1 of N documents cleanly so that the next time the document is open MS Word does not prompt the use which file to recover/open.
Ansgar Wiechers is wrong. This is not a duplicate. The link provided in the comment that it was duplicate was for excel, not word. On top of that the the link does not say how to cleanly stop 1 of N MS Word documents.