Cleaning up script to reduce powershell GOTCHAS with quoted variables