Are you looking for how to use /setblock
with blocks with data? See this post.
How do I get a block with data in my inventory so I can place it myself? In Java Edition, these commands work:
give @s chest{BlockEntityTag:{Items:[{id:"diamond",count:10b}]}}
give @s sign{BlockEntityTag:{Text1:"{\"text\":\"foo\",\"bold\":true}"}}
How can I do this in Bedrock Edition, where there is no access to NBT tags from commands?