See Title.
I specified needed parameters in the head of a script:
param ($G_ARCHIVE = $(throw \"Need file to upload!\"),
$G_LOGFILE = $(throw \"Ne
There is a much simpler way to set needed Parameters in ISE:
Before pressing F5 in ISE, set the Parameter you need. I usually comment the Parameter I need, example: # $G_ARCHIVE = "C:\Temp\TestFile_001.txt"
I select everything after "#" and press F8. Next time I debug the script with F5, the Parameter is set to the value I am testing with, no need to pass the Parameters through the command line.