Ok, Let's say you got 3 markers, "M1","M2","M3"
Copy & paste this and save it as markermove.sqs
;markermove.sqs
_veh = _this select 0
_markers = ["M1","M2","M3"]
_c = count _markers
_i = 0
#START
_veh domove getmarkerpos (_markers select _i)
#1
?!alive _veh : exit
?unitready _veh : goto "2"
~2
goto "1"
#2
_i = _i + 1
?_i < _c : goto "START"
exit
Run it with
[name_of_vehicle] exec "markermove.sqs"
If you got more markers, simply add them in the _markers array.
Not tested.