Updated process.lua - untested

Adapted from my OS, not thoroughly tested. Need to add error handling for processes.