I am trying to take data from a webform that is generated in pdf format and migrate it to csv so I can use my limited powershell knowledge to automate VM builds. This is all done on linux as well. This is what I have so far and that seems to work, but I need to automate it all so I need to use wildcards as the file names will change.
pdftotext -nopgbrk './AndyTest-2 - Linux - Debian 10_13.pdf' test.txt
Import-Csv test.txt | Export-Csv test.csv