filmov
tv
Function: How to create a PowerShell Function #powershell #powershellscripting #programming

Показать описание
How to create a PowerShell Function.
A function is a great tool to use in PowerShell. Imagine making a customized tool you can grab and call up anytime to use for later, any time you'd like in your PowerShell script.
To create a function, type in function, the name of the function, open parentheses, put in your call up command, and close parentheses. The function will not run in your script unless you call the function name.
To call the two functions shown, just put the function names in the order you want the commands to run.
A function is a great tool to use in PowerShell. Imagine making a customized tool you can grab and call up anytime to use for later, any time you'd like in your PowerShell script.
To create a function, type in function, the name of the function, open parentheses, put in your call up command, and close parentheses. The function will not run in your script unless you call the function name.
To call the two functions shown, just put the function names in the order you want the commands to run.