Nothing would change besides using update instead of set for the command and possibly changing your notice message. And you do not need a | anywhere in that script if you use it the same way it was given to you.