How to copy arbitrary RIFF chunk to output by ChunkId with FFmpeg?

I have a script that uses FFmpeg to process the audio files in a directory in a certian way (recursively; the audio files are all Waveform RIFF). For some reason, FFmpeg is leaving behind two (non-standard) RIFF chunks that I need for it to work, is there any way for FFmpeg to copy over the exact chunk data?

For context, I am currently using the following processing script:

function Update-Sounds {

    param (
        [string]$SoundDir
    )

    Get-ChildItem $SoundDir | ForEach-Object {
        if(!$_.Attributes.HasFlag([System.IO.FileAttributes]::ReadOnly)) {
            if($_.Attributes.HasFlag([System.IO.FileAttributes]::Archive)) {
                $out = $_.FullName + "_TEMP"
                ffmpeg.exe -hide_banner -loglevel error -i $_.FullName -filter_complex "aeval=val(ch)*31.622776601683793:c=same,asoftclip=type=hard:threshold=1" -f wav $out
                Move-Item -Path $out -Destination $_.FullName -Force
            } elseif ($_.Attributes.HasFlag([System.IO.FileAttributes]::Directory)) {
                Update-Sounds -SoundDir $_.FullName
            }
        }
    }
}

Update-Sounds -SoundDir ".hl2_sounds_misc_dir"
Write-Host "Finished."