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.
Merge pull request #12 from phasze/patch-5

Fixed command execution for windows