console: Add `-scope` flag to allow expression evaluation in module instances (#38820)