These include the large middle-class suburbs of Peoria, Mesa, Chandler, and Glendale; upscale Scottsdale; and the college area of Tempe which serves as home to Arizona State University. All areas are modern and generally lacking in historic interest, but keep in mind that Phoenix only had 100,000 residents in 1950.
do {} until ($false) is an infinite loop; it'll only exit if you use something like break, return or throw from inside the loop body. do { } until ($true) would execute the loop body exactly once (which would make the loop rather pointless.) It looks like what you intended to do was wait for a file to exist.
I need to open each document, select the document's entire content and update all fields (i.e. hit F9), then close the document. And I need to do that procedure TWICE, so that updates during the first cycle are properly reflected in the referencing document, too.I already found out, how to open Word as an object in PowerShell, how to locate all Word documents in a directory and how to open a document from a powershell script.o not use idiot methods like sendkeys as they will cause many headaches. The word object model has method calls that can update anything. The problem is you are not telling us what PowerShell code you are using.