I'm trying to learn how to spawn in multiple command blocks with lines in them using a single command block. Apparently it can be achieved via falling block entities and I have been successful in summoning a single command block as a falling block type, however I am unable to find out at the moment how to summon just one with commands inside.
I've tried looking around for documentation on this stuff but I didn't find much help and the majority of stuff that could've is probably too complicated/unnecessary for what I'm trying to achieve right now, so any help from anyone would be appreciated.
Here is the command I currently have working so far without the command line inside the target entity/command block:
summon minecraft:falling_block ~ ~3 ~2 {BlockState:{Name:command_block},Time:1}