Can’t export from within a script