protected override void ProcessRecord()
 {
     if (UIElement == null && Click.ToBool())
     {
         WriteError(new ErrorRecord(new ElementNotAvailableException("Element to be clicked before typing isn't available. Unable to execute."), "1", ErrorCategory.InvalidOperation, UIElement));
         return;
     }
     else if (UIElement != null && Click.ToBool())
     {
         UIElement.SetFocus();
     }
     StaticMethods.SendKeys(UIElement, Text, Click.ToBool());
     //WriteObject(UIElement);
 }