### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

13.1.2

### What operating system are you using?

Windows

### Operating System Version

Windows 10 version 1709

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

While registering a default protocol :
```js
app.setAsDefaultProtocolClient('test', process.execPath, [path.resolve(process.argv[1])])
```
If the `process.execPath` has space in it then it should register correct command.

Example if a app is located at `D:\demo space\electron-demo` :
then the registered command should be 
```bash
"D:\demo space\electron-demo\node_modules\electron\dist\electron.exe" "D:\demo space\electron-demo" "%1"
```


### Actual Behavior

While registering a default protocol :
```js
app.setAsDefaultProtocolClient('test', process.execPath, [path.resolve(process.argv[1])])
```
If the `process.execPath` has space in it then it registers wrong command.

Example if a app is located at `D:\demo space\electron-demo` :
then the registered command is 
```bash
"D:\harmonize-space\electron-demo\node_modules\electron\dist\electron.exe" D:\demo space\electron-demo "%1"
```

Thus it raises a error `Error : Launching app \n No app found at D:\demo` .

### Testcase Gist URL

_No response_

### Additional Information

Want to work on this issue.
If possible Assign it to me.
shell/browser/browser_win.cc
return GetAppInfoHelperForProtocol(ASSOCSTR_FRIENDLYAPPNAME, url);
}
std::wstring GetAppPathForProtocol(const GURL& url) {
  return GetAppInfoHelperForProtocol(ASSOCSTR_EXECUTABLE, url);
}
std::wstring GetAppForProtocolUsingRegistry(const GURL& url) {
  const std::wstring url_scheme = base::ASCIIToWide(url.scheme());
  if (!IsValidCustomProtocol(url_scheme))
    return std::wstring();
  
  std::wstring command_to_launch;
  base::win::RegKey cmd_key_name(HKEY_CLASSES_ROOT, url_scheme.c_str(),
                                 KEY_READ);
  if (cmd_key_name.ReadValue(NULL, &command_to_launch) == ERROR_SUCCESS &&
      !command_to_launch.empty()) {
    return command_to_launch;
  }
  
  
  const std::wstring cmd_key_path = url_scheme + L"\\shell\\open\\command";
  base::win::RegKey cmd_key_exe(HKEY_CLASSES_ROOT, cmd_key_path.c_str(),
                                KEY_READ);
  if (cmd_key_exe.ReadValue(NULL, &command_to_launch) == ERROR_SUCCESS) {
    base::CommandLine command_line(
        base::CommandLine::FromString(command_to_launch));
    return command_line.GetProgram().BaseName().value();
  }
  return std::wstring();
}
bool FormatCommandLineString(std::wstring* exe,