I used to simulate power electronics circuits and using the output file for loading Matlab. In Matlab I had a program to calculate power quality indices, but any program with the focus you want can use the results of a simulation. I also used ATP but for transient analysis of circuit breakers.