Lessons In PowerShell - Functions

   Submit to Reddit      
  

The following useful information is primarily taken from the Windows PowerShell Language Quick Reference (QuadFold.rtf) documentation.

Functions

function MyFunction 
{
    write-object $args[0]
}

function test ([string] $label="default label", [int] $start=0)
{ 
    ...
}


comments powered by Disqus