# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay
$X = $Display.Bounds.Width
$Y = $Display.Bounds.Height
Write-ReplaceContentInFile -Pattern 'FullScreenWidth = (.+)' -Substitution "FullScreenWidth = $X" -FilePath "$InstallDirectory\options.ini"
Write-ReplaceContentInFile -Pattern 'FullScreenHeight = (.+)' -Substitution "FullScreenHeight = $Y" -FilePath "$InstallDirectory\options.ini"
Write-ReplaceContentInFile -Pattern 'FullScreen = (.+)' -Substitution "FullScreen = 1" -FilePath "$InstallDirectory\options.ini"
Write-ReplaceContentInFile -Pattern '^Player name = (.+)' -Substitution "Player name = $NewPlayerAlias" -FilePath "$InstallDirectory\options.ini"