# Add-OfficeWordTableCell

Enters a specific table cell and executes nested DSL content inside it.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: WordTableCell

**Module**

`PSWriteOffice`

**Aliases**

`WordTableCell`

**Inputs**

`OfficeIMO.Word.WordTable`

**Outputs**

`OfficeIMO.Word.WordTableCell`

**Source**

[AddOfficeWordTableCellCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordTableCellCommand.cs#L19) 

Enters a specific table cell and executes nested DSL content inside it.

## Syntax

```
Add-OfficeWordTableCell
-Column <Int32>
[[-Content] <ScriptBlock>]
[-PassThru]
-Row <Int32>
[-Run <Object[]>]
[-Text <String>]
[<CommonParameters>]
```

[#](#method-add-officewordtablecell-int32-scriptblock-switchparameter-int32-object-string)

Parameter set: `Context`

```
Add-OfficeWordTableCell
-Column <Int32>
[[-Content] <ScriptBlock>]
[-PassThru]
-Row <Int32>
[-Run <Object[]>]
-Table <WordTable>
[-Text <String>]
[<CommonParameters>]
```

[#](#method-add-officewordtablecell-int32-scriptblock-switchparameter-int32-object-wordtable-string)

Parameter set: `Table`

## Description

Use this to add paragraphs, lists, images, or nested tables inside a cell selected by row and column.

## Examples

### Add nested content to a table cell.

```powershell
WordTable -InputObject $Rows { WordTableCell -Row 1 -Column 0 { WordParagraph { WordText 'Details' } } }
```

Targets the data cell at row 1, column 0 and writes text inside it.

## Parameters

**-Column Int32 required**

Zero-based column index.

**-Content ScriptBlock optionalposition: 0**

DSL content executed inside the selected cell.

**-PassThru SwitchParameter optional**

Emit the selected WordTableCell.

**-Row Int32 required**

Zero-based row index.

**-Run Object[] optionalaliases: Runs**

Rich text runs to append to the selected cell before nested content runs.

**-Text String optional**

Text to append to the selected cell before nested content runs.

**-Table WordTable requiredpipeline: True (ByValue)sets: Table**

Optional table to target outside the active DSL table scope.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:0A06D23D47FD18378AEE42AB1EDC6A9D0D65D02DA9043BE4F3224E5B554F0DF5 -->
