# Export-OfficeWordGoogleDocument

Plans, compiles, or exports a Word document to Google Docs.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument`

**Outputs**

`OfficeIMO.Word.GoogleDocs.GoogleDocsTranslationPlan` `OfficeIMO.Word.GoogleDocs.GoogleDocsBatch` `OfficeIMO.Word.GoogleDocs.GoogleDocumentReference`

**Source**

[ExportOfficeWordGoogleDocumentCommand.cs:13](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/ExportOfficeWordGoogleDocumentCommand.cs#L13) 

Plans, compiles, or exports a Word document to Google Docs.

## Syntax

```
Export-OfficeWordGoogleDocument
[-AsBatch]
[-FailOnLoss]
[-Options <GoogleDocsSaveOptions>]
[-Path] <String>
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
```

[#](#method-export-officewordgoogledocument-switchparameter-switchparameter-googledocssaveoptions-string-switchparameter-googleworkspacesession)

Parameter set: `Path`

```
Export-OfficeWordGoogleDocument
[-AsBatch]
-Document <WordDocument>
[-FailOnLoss]
[-Options <GoogleDocsSaveOptions>]
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
```

[#](#method-export-officewordgoogledocument-switchparameter-worddocument-switchparameter-googledocssaveoptions-switchparameter-googleworkspacesession)

Parameter set: `Document`

## Examples

### Example 1

```powershell
Export-OfficeWordGoogleDocument -Path 'C:\Path'
```

### Example 2

```powershell
Export-OfficeWordGoogleDocument -Document 'Value'
```

## Parameters

**-AsBatch SwitchParameter optional**

Return the provider-neutral request batch without contacting Google.

**-FailOnLoss SwitchParameter optional**

Throw when translation reports a warning or error.

**-Options GoogleDocsSaveOptions optional**

Google Docs translation and destination settings.

**-Path String requiredposition: 0sets: Path**

Path to a Word document.

**-PlanOnly SwitchParameter optional**

Return the translation plan without compiling requests or contacting Google.

**-Session GoogleWorkspaceSession optional**

Configured Google Workspace session used for a live export.

**-Document WordDocument requiredpipeline: True (ByValue)sets: Document**

Word document to export.

## 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:66E73DF0828957C1DBC351510C0C8CFECF5CD1F0F2AEE8F3141EB100C46FC6B9 -->
