Help using /fill command with NBT tags on spawners in 1.14

Solution 1:

It took some testing, but this seems to work:

/fill 5527 187 1981 5516 187 1997 minecraft:spawner{MaxNearbyEntities:6,RequiredPlayerRange:1000} replace air