cd into the directory with the csv file you want to convert to JSON
$topicsjson = import-csv . he_csv_file.csv | ConvertTo-Json
$topicsjson | Add-Content -Path "output_file_name.json"
Get-Content -path source.csv | ConvertFrom-Csv -Delimiter ',' | ConvertTo-Json | Out-File output.json