Running this command using spawnSync use to work before I added in npx.
spawnSync
npx
spawnSync(`npx git add-coauthor ${commandKey} "${name}&