Creating a document generation command