Convert .EEG to .EDF using script

I did open a new thread here Some Questions about MRI and CT when locating the positions of SEEG