How to safely shutdown MyCloud

There IS a shutdown script on the v2.x single bay My Cloud. It is:
/usr/local/modules/script/shutdown.sh

See the following posts from the thread in my prior post that indicates it DOES appear to work to some extent.

Another method using SSH:

There is also discussion of unhiding the code in the CSS file that hides the shutdown option from the v2.x single bay My Cloud Dashboard in that Safe Shutdown thread.