Automate correction of Statistic Error

HI.
I need to automate the correction of errors in statistics.

Is it possible to understand the query being executed and how to execute it (I was thinking shell script type)?

image