The New Document Dialog Box establishes the basic framework for the pages of an InDesign publication.
This includes:
Number of Pages
Pages layout for multipage publications.
Master Text Frame for documents.
Page size
Margin Area
Number of columns on each page
Gutter distance
These can be set with an InDesign Script.