Looking for help creating a script that takes input parameters...
I want to take a file l like file1 - give a script name, input filename, output filename , and a string of column names to keep...
script.ps1 file1.csv file2.csv name,address
File1.csv ( see below )
script would remove all columns that are not in the columns input, result would show:
I had a vbscript that would do this a while back but I lost it. That script also created the file file in excel, which would be fine for this as well.
wsmith,"William Smith",111-111-1111,111 street
bcar,"Billy Car",222-222-2222,2222 road
dward,"David Ward",333-333-3333,3333 circle