Exemplo n.º 1
0
 public static IEnumerable <T> RunScript <T>(this EngineIntrinsics engineIntrinsics, ScriptBlock block)
 => PsHelpers.RunScript <T>(engineIntrinsics.InvokeCommand, block.ToString());
Exemplo n.º 2
0
 public static IEnumerable <T> RunScript <T>(this EngineIntrinsics engineIntrinsics, string script)
 => PsHelpers.RunScript <T>(engineIntrinsics.InvokeCommand, script);
Exemplo n.º 3
0
 public static IEnumerable <T> RunScript <T>(this PSCmdlet cmdlet, ScriptBlock block)
 => PsHelpers.RunScript <T>(cmdlet.InvokeCommand, block.ToString());
Exemplo n.º 4
0
 public static IEnumerable <T> RunScript <T>(this PSCmdlet cmdlet, string script)
 => PsHelpers.RunScript <T>(cmdlet.InvokeCommand, script);