handlers/qrun/init.map.ps1

[ordered]@{
    "setup" = [ordered]@{
        description  = "Example multi-step process with durable state"
        _settings    = @{ process = "steps" }

        "create-dir" = {
            New-Item -ItemType Directory -Path "out" -Force | Out-Null
            Write-Host "created out/"
        }

        "write-file" = {
            "hello from qbuild" | Set-Content -Path "out/hello.txt"
            Write-Host "wrote out/hello.txt"
        }

        "verify"     = {
            if (!(Test-Path "out/hello.txt")) {
                throw "out/hello.txt is missing"
            }
            Write-Host "verified out/hello.txt"
        }
    }
}