added an option to pass execute_command as arugment list