Create a notebook with CreateDocument. Include textual cells with TextCell and input and output cells with ExpressionCell:

Notes

On desktop, save a newly created notebook with NotebookSave: