Is there a way to send command to a started exec with dockerode docker?

const docker = new Dockerode()

const exec = docker.getExec("id")

const execStream = await exec.start({
    hijack: true,
    stdin: true,
    Tty: true,
})

// This will throw EPIPE error
execStream.write("echo testn")

When I write into the exec stream it will just throw EPIPE error

Is there any way to write command to an already running shell?