0

Good afternoon. Could you please give some working examples of code where an extension calls a native app, which is powershell, gives it json input and the native app (powershell) returns to the extension the processed json data? Tried searching relevant resources for examples of specifically that case and no luck


  • PowerShell mangles binary data in stdin/stdout by default and there's probably no way to disable it (I only see a [workaround via 1252 encoding](https://github.com/PowerShell/PowerShell/issues/1908#issuecomment-1454973362) but it's apparently inefficient), which is why there are no examples of using it with nativeMessaging. See also [How to use powershell as native messaging host?](https://stackoverflow.com/q/73786229) – wOxxOm Mar 22 '23 at 23:22

0 Answers0