file(WRITE "${launcher}LauncherSettings.ini" " ...
Use WithArguments (string []) (array overload) instead of WithArguments (string) (raw string) to get automatic escaping of spaces, quotes, and special characters in argument values.