Sometimes it's a useful way of running the EXE but also having your complete Debug and Data Session windows available. But you're right about the "inherited environment" problems. It's certainly not the way to test an EXE.
>Not sure what's causing your problem, but I'm curious- why are you running an exe from the command window?