Send skript to serial device and see the response

Hello,
i use Node-red on my IOT2040 and i want to send comandos to Scalance S unter serial port.
Have you a idea please ?