I'm trying to create a new partition inside a .bin file via a Bash script, but I have no clue what I'm doing.
For starters, I want to preface this by saying that I am not a Linux person. I have very limited knowledge on Linux stuff.
If it matters, the .bin file I'm trying to edit is specifically a Chrome OS RMA shim for the Zork board.
It contains of 12 partitions already, a bunch of different types of files, etc.
Anyways, in my research I believe I should be using sfdisk (as I want this to be automatically performed without user input), but I cannot find a clear and concise guide on how I would actually accomplish this.
Any guides, whether for sfdisk or something else entirely I should be using instead, would be greatly appreciated.

/anyway) is cleaner than simply using a directory under/. I mean, whether/custom_scriptsis a simple directory or a mountpoint is mostly transparent to the system and the user, so I just don't see the benefit in cluttering your image with another partition. You already have an enormous number with 12, after all.