windowVisibility ?-w win? ?(hidden|normal|minimized)?
Get or set the visibility state of a window: it is one of hidden, normal, or minimized. If the last argument is not specified, the command returns the current state, otherwise it sets the state to the specified value.