To run esxtop in batch mode and save the output file for feature analysis use the command as in in below syntax
esxtop -b -d 10 -n 5 >/tmp/esxtstats.csv
-d Switch is used for the number of seconds between refreshes
-n switch is the number of iterations to run the esxtop
In our above example, esxtop command will run for about 50 seconds. 10 seconds dealy* 5 iterations.
Once the command has executed use winscp to browse to /tmp and transfer the file to your desktop