$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern '"setting.defaultres"\s+"(.+)"' -Substitution """setting.defaultres"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultresheight"\s+"(.+)"' -Substitution """setting.defaultresheight"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"