/// <summary>
 /// Powershell logic.
 /// </summary>
 protected override void ProcessRecord()
 {
     if (Target != null)
     {
         if (Tap)
         {
             Scraper.TapScreen(Target);
         }
         else
         {
             Scraper.Click(Target);
         }
     }
     else if (Click)
     {
         Scraper.MouseClick(Button == "Left" ? MouseButton.Left : MouseButton.Right);
     }
     else if (Up)
     {
         Scraper.MouseUp(Button == "Left" ? MouseButton.Left : MouseButton.Right);
     }
     else if (Down)
     {
         Scraper.MouseDown(Button == "Left" ? MouseButton.Left : MouseButton.Right);
     }
 }