refactor: remove tree-kill dependency by using native child_process.kill and correcting spawn usage
#26606
| Job | Run time |
|---|---|
| 6s | |
| 10s | |
| 16s |