Code:
if (!$window(@Starbound)) { window -k[0]ng[1] @Starbound }


The above will do what you need as it checks to see if @Starbound is made.

*Idle question. Why do you open the same window with 2 different sets of paramaters?