In my opinion, if you feel the need to write bash scripts that mount and/or format drives, there's already something wrong with your approach.
Depending on the environment (old school linux system vs. orchestration suite) I'd rather do it manually, or if possible, let IaC (eg. Terraform, Ansible) handle such infrastructure tasks.
For lots of people, bash is the hammer, everything's a nail. Can be very frustrating to inherit such environments.
I don't want this to sound combative, but maybe you should become more comfortable in bash.
Maybe you don't need portability in your code, but maybe you could use more portability of your skills.
Maybe you can assume that ansible will be on every system you admin, but maybe that will definitely reduce your options and it's possible you don't even know what benefits you are trading by not having the depth.
It's all a big maybe, but maybe some of those people made good trades for the problems they encountered.
For lots of people, bash is the hammer, everything's a nail. Can be very frustrating to inherit such environments.