[Automation] Add functions to create TCP server and create child process.

- Provide a util function createTCPServer() to create TCP & socket server. The server object should be released at the end of current process.
- Provide a util function spawnChildProcess() to spawn a child process by inputing an absolute path of the new process.