I use Windows 10

I have 100 folders which all contain a number of wave files.

Is the a way that I select all 10 folders and have dbPoweramp convert those files to flac and place the flacs in the same folder as the source wav files keeping the same name kHz, bit rate and file tags as the source wav files?

Can this be done in reverse where I select a number of folders that contain flac files and have dbPoweramp convert those files to wav and place the wav's in the same folder as the source flac files keeping the same name kHz, bit rate and file tags as the source flac files?

Thanks in advance