Cmdlet
Add-OfficeNotebookCell
Appends a Markdown, code, or raw cell to a live notebook.
Syntax
Add-OfficeNotebookCell
-Document <NotebookDocument>
[-Kind] <Unknown| Markdown| Code| Raw>
[-Language <String>]
[-PassThru]
[-Source] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Append a PowerShell cell and return it for further editing.
$cell = $notebook | Add-OfficeNotebookCell -Kind Code -Language PowerShell -Source 'Get-Date' -PassThruParameters
- -Document NotebookDocument
- Live notebook to extend.
- -Kind NotebookCellKind
- Kind of cell to append. Choose Markdown, Code, or Raw.
- Possible values:
Unknown,Markdown,Code,Raw - -Language String
- Explicit language for a code cell.
- -PassThru SwitchParameter
- Return the appended cell.
- -Source String
- Cell text, which may be empty.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.