scriptelement: Fix time logging of integration commands

sandbox.batch() needs to happen within the timed_activity for it to count
the time it needs to run the command
1 file changed