feat(console): update variables after script execution