[win] Fix command handling bug in wt-monitor.