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.
Also note that whenever an error occurs in the try-block, PowerShell jumps to the corresponding catch-block and will not return and resume the try-block. This is why only Get-WMIObject is placed inside the try-block, not the Foreach-Object statement.ou can still not handle the error. When you place the code in a try/catch-block, the catch-block never executes: As you know from cmdlets, to handle errors you need to set the ErrorAction to Stop. With cmdlets, this was easy because each cmdlet has a-ErrorAction preference.