Create a gist now

Instantly share code, notes, and snippets.

Set-BricksetSetOwned - Multiple
Import-Csv .\Lego.csv | ForEach-Object {
$SetID = Get-BricksetSet -SetNumber $_.SetNumber | Select-Object -ExpandProperty SetID
Set-BricksetSetOwned -SetId $SetID -QtyOwned $_.QtyOwned -Confirm:$false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment