Write in X11 console

how can i write commands in the X11 console via applescript?