refactor: remove tree-kill dependency by using native child_process.kill and correcting spawn usage
#26604
| Job | Run time |
|---|---|
| 8s | |
| 10s | |
| 18s |