OK, so here is the finished code. I wanted to be able to have one script and pass multiple arguments into it so we can schedule a task.
To launch scheduled task "powershell.exe script.ps1 input1 input1 Or within powershell .\script.ps1 input1 input2
It's simple, but hopefully this will help someone else as well
[Code]
Param(
$input1,
$input2
)
## Import DataonTap
Import-Module Dataontap
$hostfile = $input1
gc $hostfile | % {
$C = Connect-NaController $_ #
Set-NaOption replication.throttle.enable $input2
}
[/code]