The ShowWindow function sets the specified window's show state. This a simple wrapper around Win32 function.
ShowWindow( $hwnd, $cmd_show );
Handle of a window to be affected
Specifies how the window is to be shown. Check MSDN for details
If the window was previously visible, the return value is nonzero. If the window was previously hidden, the return value is zero.