fix commands execution
add check of win