File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Cognifide.PowerShell/Commandlets/Session Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments