Updated RunLocalCommand execution hook