Requirement is when the user needs to refer a script parameter (scheduled task id) for showing the status of the scheduled script. So on every loading the suitelet needs to verify the task id for the status.
let script_deployment = record.load({type: record.Type.SCRIPT_DEPLOYMENT, id: 12345});
script_deployment.setValue({fieldId: 'custscript_my_parameter', value: true});
script_deployment.save();