I'm having trouble replicating this on the 2016 version of Office for Mac. The api on mac is a dylib, which I can reference in the visual basic editor. The api here is written in c using xcode, but still using stdin and stdout. I have also successfully ported it to Word 2011 for Mac. The communication takes place using stdin and stdout. I have an created an add-in for Word which communicates with a third party cmd-program via an api I have written in c# using visual studio.