inventory script