I’m just getting started, and trying to pass command-line parameters to a PowerShell script.
After checking the documentation, I thought something like this would work:
Param ( String $PackageId, String $NOGDOC )
However, after attempting it, the error messages seem to suggest that this method is for passing parameters to internal functions, rather than from the (external) command line.
Are the command-line arguments available in a pre-defined variable?
Thanks in advance for any help you can provide.