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-OfficeWordText

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Adds inline text to the current paragraph.

Remarks

Supports bold/italic/underline and color tweaks for quick DSL composition.

Examples

Authored help example

Append bold text.

PS>


Add-OfficeWordParagraph { Add-OfficeWordText -Text 'Important: ' -Bold }
        

Writes “Important:” with bold formatting.

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-OfficeWordText [-Bold] [-Color <String>] [-Italic] -Text <String[]> [-Underline <Nullable`1>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Bold SwitchParameter optionalposition: namedpipeline: False
Apply bold formatting.
Color String optionalposition: namedpipeline: False
Run color (#RRGGBB).
Italic SwitchParameter optionalposition: namedpipeline: False
Apply italic formatting.
Text String[] requiredposition: 0pipeline: False
Text segments to append.
Underline Nullable`1 optionalposition: namedpipeline: False
Optional underline style.

Outputs

System.Object