$ 0 0 Every function in the toolkit sets the function name to variable ${CmdletName} as the very first thing. Just copy what we do for your own function. Or you can hard code it in. Doesn't really matter.