Implement a robust ScriptCall and format the code.