script to batch-analyze optical properties

Hi everyone, how can I use a script to batch-analyze optical properties and polarization directions, with the scissors operator values taken from a .txt file?