Returns the id of the running process.
script.processId()
The process's id.
const processId = script.processId();