public static IEnumerable <T> Invoke <T>(IHttpPowerShellCommand command, IEnumerable input = null)
 {
     using (var powerShell = new HttpPowerShell())
     {
         return(powerShell.Invoke <T>(command.ToPSCommand(), input));
     }
 }
Example #2
0
 public T CreateInstance()
 {
     return(HttpPowerShell.Invoke <T>(this._command).FirstOrDefault());
 }
Example #3
0
 public static IEnumerable <T> Invoke <T>(this IHttpPowerShellCommand command, IEnumerable input = null)
 {
     return(HttpPowerShell.Invoke <T>(command, input));
 }