hook_state_create: Create a hook state
Description
Runs the hook script to create a hook state, i.e. exit code, transformed
files and emitted messages of the hook run.
Usage
hook_state_create(
tempdir,
path_candidate_temp,
path_executable,
cmd_args,
path_stdout,
path_stderr,
env
)