Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Add-OfficePowerPointSection

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointSectionInfo

Adds a section to a PowerPoint presentation.

Remarks

Creates a new section starting at the requested slide index or at the current slide inside the DSL.

Examples

Authored help example

Create a section that starts at slide 3.

PS>


Add-OfficePowerPointSection -Presentation $ppt -Name 'Results' -StartSlideIndex 2
        

Creates a section named Results starting at the third slide.

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.

Syntax

Add-OfficePowerPointSection -Name <String> [-Presentation <PowerPointPresentation>] [-StartSlideIndex <Nullable`1>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Name String requiredposition: namedpipeline: False
Name of the section to add.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside DSL).
StartSlideIndex Nullable`1 optionalposition: namedpipeline: False
Zero-based slide index where the section should start.

Outputs

OfficeIMO.PowerPoint.PowerPointSectionInfo