Actually I found where the max Tresca stress was (x y) using PSTRess 6,,0 and I used
BATCh
TPLOt !Time evolution for quantities
END
STREss ,,1 x y
STREss ,,2 x y
STREss ,,3 x y
STREss ,,4 x y
Matlab finishes the work
clc
clear all
close all
A= [s11 s12 0;s12 s22 0;0 0 s33];
[V,U]=eig(A);
D=V\A*V;
tresca_tab = [abs(D(1,1)-D(2,2));abs(D(1,1)-D(3,3));abs(D(3,3)-D(2,2))];
tresca = max(tresca_tab)
A bit longer than using a subroutine i guess, but i coudnt work that out