Opening external links in a specific browser profile

What I’m trying to do

In Windows, you can create a shortcut to open a URL using a specific browser, with a specific profile, rather than the default browser/profile.

The shortcut contains the file path to the browser executable, a space, then a switch(?) to specify the profile, then another space, then the URL.

As an example, this shortcut would open Google Calendar, using the Google Chrome browser, in the second registered profile, which might be called “Work”.

“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --profile-directory=“Profile 2”

I’d like to use these types of links within Obsidian, but haven’t been able to get them to work

Things I have tried

I’ve tried adding an external link exactly as it would look in the shortcut (although I didn’t expect this to work, due to the spaces not being escaped):

[Work Calendar](“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --profile-directory=“Profile 2”

I’ve tried encoding just the spaces:

[Work Calendar](“C:\Program%20Files%20(x86)\Google\Chrome\Application\chrome.exe”%20–profile-directory=“Profile 2”%20

I’ve tried encoding the whole lot:

Work Calendar

I know that the plugin Open Link With exists, but it doesn’t fit what I’m trying to do.

Any help would be appreciated. Thanks.

Take a look to this tiny program, maybe it can help you