Like CrashBurn said, it's impossible. but what you can do is creat all the markers in the editor and set the markers type to "EMPTY" so that they can't be seen. Then in a script, use this line:
markername setMarkerType "type"
and replace type with something. eg. marker, arrow, flag, etc...
This might work for what your trying to do.