In powershell you can declare parmeters like:
function My-Function($someParemeter) { Do something... }
But can also use:
function My-Function { param($someParameter) DoSomething... }
What is the difference? When should I use one or the other?
In powershell you can declare parmeters like:
function My-Function($someParemeter) { Do something... }
But can also use:
function My-Function { param($someParameter) DoSomething... }
What is the difference? When should I use one or the other?