The tool I'm using is PL/sql tidy (http://psti.equinoxbase.com/).
I think the problem is that the tool finishes to fast, in less than one second. If I create a bat file that calls the tool after waiting 2 seconds it works correctly.
my bat file:
**************************
REM Wait 2 seconds...