Hello ArchaeolgoGIS,
You can do it using the same function that loads the coordinates for the cameras:
chunk = PhotoScan.app.document.chunk
path = "D:/markers.txt"
chunk.loadReference(path, format = PhotoScan.ReferenceFormatCSV, delimiter=",", columns="nxyz")
the same of the file for such function is the following:
point 1,123.321,124.432,543.1