The CommandPath() for a parent might have a space (if .Parent() != .Root()) so we need to replace those spaces with `-`