I believe you're supposed to use Native Messaging for that: https://developer.chrome.com/extensions/nativeMessaging
I initially assumed I was doing something wrong but after a week or so experimenting with simple test cases I could not get it to work. Maybe it works fine on Linux and Mac but not Windows.
We should probably have a weekly HN column with that title.