Fix windows regex and ensure command spawns a new cmd window