test and fix script command