refactor: remove tree-kill dependency by using native child_process.kill and correcting spawn usage
#45881
| Job | Run time |
|---|---|
| 7s | |
| 7s |