It is not possible to do this directly. But it is possible to call a non-interactive program and communicate with it using a Dataqueue.