Refs #23778 -- Replace hard-coded app label by sys.argv in the snippet.

Thanks @prestontimmons for the suggestion.