# Advanced Functions: \`\[CmdletBinding()\]\`

One line, \[CmdletBinding()\] above param(), turns a function into an advanced function that binds its parameters the way a cmdlet does: it refuses a misspelled parameter instead of quietly ignoring it, and gets -Verbose, -ErrorAction and the other common parameters for free.

![Cheat sheet for the lesson Advanced Functions: \`\[CmdletBinding()\]\`: One line, \[CmdletBinding()\] above param(), turns a function into an advanced function that binds its parameters the way a cmdlet does: it refuses a misspelled parameter instead of quietly ignoring it, and gets -Verbose…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0576da31e85648e183c9347a05b11003.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: advanced-function, cmdletbinding, common-parameters, erroraction, powershell
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-advanced-functions-cheat-sheet
