refactoring scriptCommand with script locator