Kazimierz Sosnkowski, military commander