$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.Height)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"
$NewPlayerAlias | Out-File -FilePath "$InstallDirectory\bin\steam_settings\force_account_name.txt"