Have a look on the Admin guide link i shared with you and check \o command to write output to a file.
After checking it you will get a better idea on what i was actually trying to refer here and we can further discuss from there.
Regards,
Krishna Tangudu