Exporting multiple markup points

Hi,

I am trying to export multiple markup points from my slicer window to an excel sheet. I tried to use the script provided in the script repository.

markupsNode = slicer.util.getNode(‘F’)
slicer.modules.markups.logic().ExportControlPointsToCSV(markupsNode, “/path/to/MyControlPoints.csv”)

But it (quite understandably) only exports the last point, as on each step it overrides the previous point. How can I export multiple points using “python interactor”?