# Learn About Powershell Define Function In Brief.

Asked By 5 points N/A Posted on -

Hello all,

I have a query regarding powershell define function. I want to ask how to define a function in Windows PowerShell.

SHARE
Answered By 0 points N/A #299320

## Learn About Powershell Define Function In Brief.

A block or excerpt of code may be present in a function for easy re-use of that code.
If you want to define a function, type the function keyword followed by the function name, then include your code inside curly braces.

For example,