# Example 27 02

Example 27 02 on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example27-SectionsPanelsContainers`

```powershell
Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force

$Test1 = Get-Process | Select-Object -First 2 -Property Name, Id, PriorityClass

New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example27-02.html -Show {
    $SectionStyle1 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -Rotate 180deg -RequestConfiguration
    $SectionStyle2 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -TextOrientation upright -RequestConfiguration -AlignContent flex-end -Align flex-end
    $SectionStyle3 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -RequestConfiguration -BackgroundColorContent Yellow
    $SectionStyleHidden = New-HTMLSectionStyle -DirectionContent row -WrapContent wrap -RequestConfiguration -BorderRadius 0px
    New-HTMLSection -HeaderText 'Default Section Style' {
        New-HTMLTable -DataTable $Test1 -HideFooter {
            New-HTMLTableHeader -Names 'ID', 'HandleCount'
        }
    } -Collapsed -CanCollapse
    New-HTMLSection -Invisible {
        New-HTMLSection -Title 'Section Style 1' {
            New-HTMLTable -DataTable $Test1 -HideFooter
        } -StyleSheetsConfiguration $SectionStyle1 -HeaderTextColor Black -Collapsed -CanCollapse
        New-HTMLSection -Title 'Section Style 2' {
            New-HTMLTable -DataTable $Test1 -HideFooter
        } -StyleSheetsConfiguration $SectionStyle2
        New-HTMLSection -Title 'Section Style 3' {
            New-HTMLTable -DataTable $Test1 -HideFooter
        } -StyleSheetsConfiguration $SectionStyle3
    }

    New-HTMLSection -HeaderText 'Test' {
        New-HTMLSection -Title 'Section Style 4' {
            New-HTMLTable -DataTable $Test1 -HideFooter
        } -StyleSheetsConfiguration $SectionStyle3
        New-HTMLSection -Title 'Section Style 5' {
            New-HTMLTable -DataTable $Test1 -HideFooter
        } -StyleSheetsConfiguration $SectionStyle3
    } -StyleSheetsConfiguration $SectionStyleHidden
} -Format
```

<!-- PowerForge markdown artifact sha256:99419538D88540F3B268B8834D609B9CFEC452CE1DAE39A337E36D9D8585220D -->
