Add support for using --inventory on run.sh

Change-Id: I868829591498259395668e702b6604ae630df459