Ok, it's just one line to go:

ffmpeg.exe -protocol_whitelist "crypto,file,http,https,tcp,tls" -i "xxxx.m3u8" -c copy -bsf:a aac_adtstoasc filename_to_output.mp4