> For the complete documentation index, see [llms.txt](https://xiaoyvr.gitbook.io/powershell-tricks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaoyvr.gitbook.io/powershell-tricks/about-scriptblock.md).

# About ScriptBlock

Use & to execute it. Use `param` to define args just like functions.

If sometime you cannot get the correct behavior for a piping output, use a scriptblock to wrap and execute it.

```
& { & xunit.runner.exe "test.dll" } | Output-Default
```
