I have a script below that I want to execute against all .csv files in a directory. I know I can use Get-ChildItems, but how to filter it for only .csv files in .\ and execute my script?
import-csv .\chapters.csv |
ConvertTo-Json -Compress |
ForEach-Object {$_ -creplace '""NULL""','null'} |
Out-File .\chapters.json