Dynamic inventory script