NXP-12230 - Improve command line exec; fix issue for Win2008