How to manage Point of sale with multiple uom-rate

How to add item to cart manually using script with selected uom-rate

You can create item price list with multiple UOM and you can call the same in POS.

I customize POS page to select uom before adding item to cart . But the default uom item price is added to cart.How to add item with selected uom price to cart