TextPacket[string] is a WSTP packet containing string, the text output from the Wolfram System as produced by functions such as Print.
Launch a subsidiary Wolfram Language kernel process:
Read the first packet:
Write a packet representing the text to enter:
The result from the evaluation is a TextPacket:
Close the link: