Robert,
Bad substitution sounds like there may be an issue with the shell you're using. Perhaps you should try a different one. You might also consider running a full installation of Windows with something like Qemu.
That's about all the advice I can offer.
Guy