Changed the way hook.run works to a more proper way

hook.run now uses instance.runScriptHookForResult instead of
instance.runWithOps