PowerShell is a basic skill any administrator working in Windows or Azure should know. After writing his first article about PowerShell parameters, Greg Moore realized that there is even more to talk about. This article covers using pipelined parameters and more. Jul 10, 2017 · Square brackets around a parameter name and its type means it is an optional parameter and the command will work just fine without it. Square brackets around the parameters name means that the parameters is positional parameter. The thing to the right of a parameter in the angled brackets tell you the data type the parameter is expecting. Jan 08, 2019 · Summary of PowerShell’s Functions Scripting functions are like macros, they replay your commands. In the case of PowerShell, you could also make functions the rational, framework or building-block for creating your scripts. When you get down to creating functions it reinforces knowledge of parameters. Jul 11, 2017 · DESCRIPTION This is a WMI wrapper function to get the time that your PC last started up.. PARAMETER ComputerName The name of the Computer you want to run the command against. . EXAMPLE Get-LastBootTime -ComputerName localhost .LINK www.howtogeek.com #> Jun 01, 2020 · This powershell tutorials explains powershell global variable, how to declare powershell global variable without value, and how to use powershell global variable inside functions. How to set a PowerShell global variable from a function by passing the global variable as a parameter to the function.