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