Input Data from Command Line

It isn’t clear what you mean by this. It seems like you have some other program that is receiving the data. Via Serial? USB or network cable? Maybe USB? If you have a library for getting values from the USB device using another language, you could rebroadcast that information on a local protocol, e.g osc etc – there are lots of io and networking libraries for Processing.