$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern '^"vid_width" (.+)' -Substitution """vid_width"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^"vid_height" (.+)' -Substitution """vid_height"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^vid_width (.+)' -Substitution "vid_width ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"
Write-ReplaceContentInFile -Pattern '^vid_height (.+)' -Substitution "vid_height ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"
Write-ReplaceContentInFile -Pattern '^"_cl_name" (.+)' -Substitution """_cl_name"" ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^_cl_name (.+)' -Substitution "_cl_name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"