Running Scripts with arguments in PowerShell
Written by Niklas Goude on December 16, 2009 – 5:34 pm
Here’s a short guide on running scripts in powershell.
The guide is divided into three parts:
Running Scripts from the Console
Running Scripts from Start/Run
Running Scripts as Backgournd Jobs in PowerShell
First, let’s look at the script examples that we want to run.
Here’s the first script:
##################
#
# Script 1
#
##################
“Arguments: $($args.count)”
$args
And here’s the second script:
##################
#
# Script 2
#
##################
param($Argument1,$Argument2)
“Argument1 is: $Argument1″
“Argument2 is: [...]

