# Invoke-OfficeProjectSchedule

Explicitly calculates a schedule and optionally applies its dates.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectDocument`

**Outputs**

`OfficeIMO.Project.ProjectScheduleResult`

**Source**

[InvokeOfficeProjectScheduleCommand.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/InvokeOfficeProjectScheduleCommand.cs#L16) 

Explicitly calculates a schedule and optionally applies its dates.

## Syntax

```
Invoke-OfficeProjectSchedule
[-Apply]
[-CalculateAssignments]
[-Document <ProjectDocument>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-invoke-officeprojectschedule-switchparameter-switchparameter-projectdocument-switchparameter-switchparameter)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Project, Access, and EPUB Files](/docs/pswriteoffice/project-access-epub/) Guide
  
  Create and read Microsoft Project schedules, Access databases and EPUB books from PowerShell, without Project or Access installed.
- [Reliable Automation Patterns](/docs/pswriteoffice/automation-patterns/) Guide
  
  Structure document jobs for repeatability, diagnostics, safe mutation, and CI artifacts. Includes examples and cmdlet links.

## Examples

### Explicitly calculates a schedule and optionally applies its dates.

```powershell
$project | Invoke-OfficeProjectSchedule -CalculateAssignments -Apply
```

## Parameters

**-Apply SwitchParameter optional**

Apply an error-free result to this project. Otherwise return a calculation without changing stored dates.

**-CalculateAssignments SwitchParameter optional**

Also calculate assignment work and costs.

**-Document ProjectDocument optionalpipeline: True (ByValue)**

Project to inspect or change.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

## 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).

<!-- PowerForge markdown artifact sha256:EF010076A77FF6BE5A1C6A7A4303BDEE6D5B4307DD852D468B566EB6AFB9BBAB -->
