Fixed command execution for windows

This should also be fixed for linux and call the shell instead of just executing a command.  This is especially useful if piping the information or using other shell commands.