PowerShell Functions
suggest changeIntroduction
A function is a named block of code. When you call the function name, the script block inside it runs. You invoke it by typing the name. Functions save time on repetitive tasks. A definition has three parts: the function keyword, a name, and a script block in curly braces.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents