Windows PowerShell Quick Reference

How to Access Arguments To access command-line arguments used when starting a script use the automatic variable $args. You can cycle through the individual arguments in the $args collection by using code similar to this: foreach ($i in $args) {$i} To access a particular argument use the collection index number, with 0 representing the first… Continue reading Windows PowerShell Quick Reference