Set environment variables on running scripts