6 lines
302 B
PowerShell
6 lines
302 B
PowerShell
param([Parameter(Mandatory=$true)][string[]]$keyword)
|
|
### keyword to filter
|
|
$csvDir=(Join-Path $PSScriptRoot ..)
|
|
Get-Content $csvDir\ArmorExport-Armor.csv|convertFrom-Csv -Delimiter ';' `
|
|
|ForEach-Object { $_.Keywords = ($_.Keywords -split ','); $_ } `
|
|
|where-object { $keyword -in $_.Keywords } |