mysql > path_to_bin/name.exe
Is there a solution?
No, that would be a huge security risk.
You can use \! on the Linux side to execute simple shell commands, but
Source