// With object returned
 /// <exception cref="System.InvalidOperationException">Throws InvalidOperationException if any error occurs from the cmdlet call.</exception>
 public static List <object> ExecuteCmdletInPipeline(this PSCmdlet cmdlet, string name, object cmdletParameters)
 {
     return(cmdlet.ExecuteCmdletInPipeline <object>(name, cmdletParameters.ToKeyValuePair()));
 }
 /// <exception cref="System.InvalidOperationException">Throws InvalidOperationException if any error occurs from the cmdlet call.</exception>
 public static List <object> ExecuteCmdletInPipeline(this PSCmdlet cmdlet, string name)
 {
     return(cmdlet.ExecuteCmdletInPipeline <object>(name, Array.Empty <KeyValuePair <string, object> >()));
 }
 /// <exception cref="System.InvalidOperationException">Throws InvalidOperationException if any error occurs from the cmdlet call.</exception>
 public static List <T> ExecuteCmdletInPipeline <T>(this PSCmdlet cmdlet, string name, object cmdletParameters, bool ignoreErrors = false, bool writeErrors = false)
 {
     return(cmdlet.ExecuteCmdletInPipeline <T>(name, cmdletParameters.ToKeyValuePair(), ignoreErrors, writeErrors));
 }