Actually i want to be able to open ANY program and have it as the main focus on the screen and the hide it again when i give an open/close command
Also, for programs that are already running on your computer, if you just want to maximize the program window, focus the window, minimize (hide) the window, or close the window entirely, you'll want to take a look at the various Window.* actions at the same wiki link.