# New-OfficePowerPoint

Creates a PowerPoint presentation using the DSL. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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: OfficePowerPoint, PowerPointNew, PptNew

**Module**

`PSWriteOffice`

**Aliases**

`OfficePowerPoint` `PowerPointNew` `PptNew`

**Inputs**

`None`

**Source**

[NewOfficePowerPointCommand.cs:27](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/NewOfficePowerPointCommand.cs#L27) 

Creates a PowerPoint presentation using the DSL.

## Syntax

```
New-OfficePowerPoint
[[-Content] <ScriptBlock>]
[-NoSave]
[-Open]
[-PassThru]
[-Password <String>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-new-officepowerpoint-scriptblock-switchparameter-switchparameter-switchparameter-string-string)

Parameter set: `All Parameter Sets`

## Description

Initializes a presentation, runs the DSL script block, and optionally saves the deck.

## Examples

### Create and capture the presentation object.

```powershell
$ppt = New-OfficePowerPoint -Path .\deck.pptx -NoSave
```

Creates a live presentation associated with deck.pptx for incremental composition.

### Create a deck with a title slide.

```powershell
New-OfficePowerPoint -Path .\deck.pptx { PptSlide { PptTitle -Title 'Status Update' } } -Open
```

Creates, saves, and opens a deck with one titled slide.

## Parameters

**-Content ScriptBlock optionalposition: 1**

DSL scriptblock describing presentation content.

**-NoSave SwitchParameter optional**

Skip saving after executing the DSL.

**-Open SwitchParameter optional**

Open the presentation after saving.

**-PassThru SwitchParameter optional**

Emit the saved FileInfo for chaining.

**-Password String optional**

Password used to save the presentation as an encrypted package.

**-Path String requiredposition: 0aliases: FilePath**

Destination path for the new .pptx.

## 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:D2E475F6CD7CDDA3B135735E233602BDBB8FD42E2FFEC2A494C3E795C90BF1A2 -->
