Skip to content

Commit 64a8b49

Browse files
committed
Issue #360
1 parent d0ffa9c commit 64a8b49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Cognifide.PowerShell/Commandlets/Session/InvokeScriptCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class InvokeScriptCommand : BaseShellCommand
2323
[Alias("FullName", "FileName")]
2424
public string Path { get; set; }
2525

26+
[Parameter]
27+
public object[] ArgumentList { get; set; }
28+
2629
// Methods
2730
protected override void ProcessRecord()
2831
{
@@ -49,7 +52,7 @@ protected override void ProcessRecord()
4952
if (!ShouldProcess(scriptItem.GetProviderPath(), "Invoke script")) return;
5053

5154
object sendToPipeline = InvokeCommand.InvokeScript(script, false,
52-
PipelineResultTypes.Output | PipelineResultTypes.Error, null);
55+
PipelineResultTypes.Output | PipelineResultTypes.Error, null, ArgumentList);
5356
WriteObject(sendToPipeline);
5457
}
5558
}

0 commit comments

Comments
 (0)