Import-Module RKModule


$orderids = Get-RKCustomerOrders -CustomerRefNumber 100184058

$orders = foreach($entry in $orderids) {
    [pscustomobject]@{
        Order = Get-RKObjOrder -OrderID $entry.OrderID
        OrderItems = Get-RKObjOrderItem -OrderID $entry.OrderID
    }
}

