replaced execSync with spawn for installing hook/command