spawn cmd patch