Thank you very much Andrew, it worked well for a single run.
Actually, I had a bit more work with my script since it detects what type of simulation was started (ADE L single, or parametric, or ADE XL) and calls a subscript to execute the routine (in my case, evaluate the noise power of my circuit).
In the case of a parametric simulation, my script first lists the parametric runs (l_Runs) and then does something like:
resultDir_dd = strcat(paramDir "/" RunName)
resultDir = strcat(resultDir_dd "/psf")
evalstring(strcat("ocnEval(" subscript ")")) ;# calling the subscript
With the above loop, the script returns only the last value of the Noise Power (here given by the subscript as 'NP') with axlOutputResult(NP) instead of a set of Noise Powers corresponding to each parametric run.
So I had to list the '(Run NP) inside the loop and to call axlOutputResult(artListToWaveform(list(Runs NPs))) after the loop.
In the case of an ADE XL, my script lists all corners and then executes a foreach(Corner l_Corners ... ) in the same fashion as the parametric simulation, but leaving axlOutputResult(NP) inside the loop is enough to get my noise power as an output for each corner.
Everything works fine now!
Thanks again Andrew,