Multi Drive Shutdown

I tried playing with scripts but couldn’t get it to work but I’m sure I didn’t know what i was doing, totally clueless with linux. I will have to do some research and get it done. If anyone can help with a script to shutdown one I am sure I could modify to fit my needs.