Create static map from automap via command line

Is it possible that through some command or procedure, a static map can be created from an automap?
The idea is to be able to fulfill the same function as “export to static map” but through a script