Well, actually there's no way to stop such command. Normally, WinSCP would timeout waiting for the command to finish. But your command keeps producing an output indefinitely.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.