# param Block

say it: **“puh-RAM BLOK”** **/pəˈræm blɒk/**

Declares the parameters a script or function accepts.

## What does `param Block` do?

A `param()` block declares the parameters a script or function accepts, with types, defaults and rules.

```powershell
param(
    [Parameter(Mandatory)]
    [string]$Destination,
    [int]$KeepDays = 7
)
```

Level: Journeyman · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/param-block
