Added option to not wait until cmd window closes before continuing