How can I use the Map.CreateMarker function to create and store new markers

This and the links within may help you to do what your want to do

and

and

and others … search for multiple markers and hide and or delete runtime markers