fixed task spawn for windows