UR3e mit Matlab ansteuern

Hello I am a student and a beginner on UR3e. Within a project I have the task to control the UR3e with Matlab without a toolbox. Reading out the data works but reading in the data is a bit more complex because a UR script has to be written on the UR3e. Can anyone help me with the steps I need to follow?