This line solves my problem:
(Get-Content "$aomsDir\$file") | % {$_ -replace '"', '"'} | Set-Content -path "$aomsDir\$file"
It will ensure that " is written to the config file and allows the application to connect to the database.
Alan
2009-08-15 09:07:07