I have a JXA function that binds the libproc.dylib function proc_pidinfo and then I ttempt to call the function like so:
libproc.dylib
proc_pidinfo
ObjC.bindFunc