import File; import Process; // Get absolute path to example.exe // (Using a relative path or just the filename may fail depending on the environment) string programPath = getFilePath("example.exe"); // Define arguments (program path + command-line args) string processArgs[] = { programPath, "argA", "argB", "argC" }; // Create process int processID = newProcess(processArgs); // Start execution startProcess(processID); // Optional: send input if needed // (Be aware: input may not be accepted unless it ends with a newline) setProcessInput(processID, "Hello!" + EOL); // Wait for process to finish waitForProcess(processID); // Get standard output and error // (The entire output during execution is buffered) string processOutput = getProcessOutput(processID); string processError = getProcessError(processID); // Output to VCSSL console println("Standard Output: " + processOutput); println("Standard Error: " + processError);