Addressed some problems starting the powershell script.  Apparently parameters with spaces in them don't work when enclosed in double quotes.  Use single quotes instead.  After which it gets stuck in a tight loop of errors, so add another test to the while loop.