internal List <IUiElement> GetAutomationElementsViaWildcards(
            GetControlCollectionCmdletBase cmdlet,
            bool caseSensitive,
            bool onlyOneResult,
            bool onlyTopLevel)
        {
            if (!cmdlet.CheckAndPrepareInput(cmdlet))
            {
                return(null);
            }

            var resultCollection = new List <IUiElement>();

            foreach (IUiElement inputObject in InputObject)
            {
                resultCollection =
                    GetAutomationElementsWithWalker(
                        inputObject,
                        cmdlet.Name,
                        cmdlet.AutomationId,
                        cmdlet.Class,
                        cmdlet.ControlType,
                        caseSensitive,
                        onlyOneResult,
                        onlyTopLevel);
            }

            return(resultCollection);
        }
 internal List<IUiElement> GetAutomationElementsViaWildcards(
     GetControlCollectionCmdletBase cmdlet,
     bool caseSensitive,
     bool onlyOneResult,
     bool onlyTopLevel)
 {
     if (!cmdlet.CheckAndPrepareInput(cmdlet)) { return null; }
     
     var resultCollection = new List<IUiElement>();
     
     foreach (IUiElement inputObject in InputObject) {
     
         resultCollection =
             GetAutomationElementsWithWalker(
                 inputObject,
                 cmdlet.Name,
                 cmdlet.AutomationId,
                 cmdlet.Class,
                 cmdlet.ControlType,
                 caseSensitive,
                 onlyOneResult,
                 onlyTopLevel);
     }
     
     return resultCollection;
 }