Theoretically yes (of course) but Bash can make it tricky.
You could offer something like shell scripting on that, but my system did not and there are better options. For example: have the resource manager expose a command that offers a DSL for making system-wide changes.
Like... Kubernetes? :)