Convert special logic in __execute_command_line for functions ...

... that may move a window to a separate function flag.