Those are both triggering the same function, try this:
function onstartup ()
gate = createObject ( 3885, -1498.2347412109, 805.29083251953, 5.7079048156738, 0, 0, 74.915008544922)
end
addEventHandler ( "onResourceStart", getRootElement(), onstartup )
function move(_,cmd)
if cmd=="1" then
moveObject ( gate, 2200, -1497.6064453125, 805.119140625, 50.178058624268)
elseif cmd=="2" then
moveObject ( gate, 2450, -1498.2347412109, 805.29083251953, 5.7079048156738)
end
end
addCommandHandler("1", move)
addCommandHandler("2", move)