How to create shutdown sound, Ubuntu 20.04

I have these two links that say how to create and link for shutdown sound. has not worked for me yet. I have changed the file to K99 and k01.

method 1- https://myubuntublog.wordpress.com/2011/03/15/shutdown-sound/#comments

method 2 - https://stackoverflow.com/questions/28248421/ubuntu-14-04-how-do-i-play-an-ogg-file-on-shutdown-with-a-script

Any help is appreciated.

I am also looking for a way to execute a script at shutdown. So far, no luck.

Tried to create a script (folder creation) on /etc/init.d starting with "K99" but it wasn't executed.