Hello Yuji,
The CSV file for the script should contain the scale bar label and distance in each line (with "tab" delimiter).
The label should contain labels of the corresponding marker separated with "_" symbol.
But if necessary, you can use any custom CSV format, you just need to adjust the lines related to the file scanning.