                 try testWithTemporaryDirectory { tmpdir in
                     let file = tmpdir.appending(component: "pidfile")
                     let waitFile = tmpdir.appending(component: "waitFile")
-                    let process = Process(args: self.script("print-pid"), file.pathString, waitFile.pathString)
+                    let process = Process(scriptName: "print-pid", arguments: [file.pathString, waitFile.pathString])
                     try processes.add(process)
                     try process.launch()
                     guard waitForFile(waitFile) else {

        }

        do {
            let process = Process(args: script("exit4"))
            try process.launch()
            let result = try process.waitUntilExit()
            XCTAssertEqual(result.exitStatus, .terminated(code: 4))

typealias Process = TSCBasic.Process

class ProcessTests: XCTestCase {
    func testBasics() throws {
        do {
            let process = Process(args: "echo", "hello")
