public static void Main() { var window = new Window() //make sure the window is invisible { Width = 0, Height = 0, Left = -2000, WindowStyle = WindowStyle.None, ShowInTaskbar = false, ShowActivated = false, }; window.Show(); myWindowTitles = myActions.GetWindowTitlesByProcessName("IdealAutomateExplorer"); myExit: Console.WriteLine("Script Ended"); }