Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade (with the exception of /usr/local). So you don‘t want to store your own content there.
The canonical place for user-provided code is /usr/local/bin
, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin
or similar is a good place.