Find all Name* files under ../../$name-module and rename them by replacing 'Name' with $Name (will be expanded in the current shell) in their names
find ../../$name-module -print0 -name 'Name*' -type f | xargs -0 rename "s/Name/$Name/"