$files = Get-ChildItem -Path "cases" -Filter "*.json" | Sort-Object Name foreach ($f in $files) { $native = curl.exe -s --data-binary "@$($f.FullName)" -H "Content-Type: application/json" http://127.0.0.1:3456/api/reply $node = curl.exe -s --data-binary "@$($f.FullName)" -H "Content-Type: application/json" http://127.0.0.1:3457/api/reply "### " + $f.Name " N: " + $native " J: " + $node "" }