# Generate Help

Generate Help 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)

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

function New-HTMLTreeFileNodes {
    [CmdletBinding()]
    param(
        [string] $Path,
        [switch] $IsExpanded,
        [string[]] $Filter,
        [switch] $RelativePath,
        [string] $Root
    )
    $FileSystem = Get-ChildItem -Filter * -Path $Path | Select-Object -First 10
    foreach ($F in $FileSystem) {
        if ($F.PSIsContainer) {
            New-HTMLTreeNode -Title $F.BaseName -Folder {
                New-HTMLTreeFileNodes -Path $F.FullName -IsExpanded:$IsExpanded.IsPresent -Filter $Filter -RelativePath:$RelativePath.IsPresent -Root $Path
            } -IsExpanded:$IsExpanded.IsPresent
        } else {
            if ($Filter) {
                $Found = $false
                foreach ($Find in $Filter) {
                    if ($F.Name -like $Find) {
                        $Found = $true
                        break
                    }
                }
                if (-not $Found) {
                    continue
                }
            }
            if ($RelativePath) {
                $Link = $F.FullName.Replace("$Root\\", '')
            } else {
                $Link = $F.FullName
            }
            New-HTMLTreeNode -Title $F.Name -HrefLink $Link -Target 'contentFrame'
        }
    }
}


New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\..\ShowMe.html" {

    New-HTMLSection -Invisible {
        New-HTMLSection {
            New-HTMLTree -Checkbox none {
                New-HTMLTreeChildCounter -Deep -HideZero -HideExpanded
                New-HTMLTreeFileNodes -Path $PSScriptRoot -Filter *.html -IsExpanded
            } -EnableChildCounter -AutoScroll
            New-HTMLSection -Invisible {
                New-HTMLFrame -Name 'contentFrame' -Scrolling Auto -Height 550px
            }
        }
    }
} -Online -ShowHTML
```

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