Append extension name to filename

There's an example in the Rename forum post which shows how to use Jscrip, VBscript, PerlScript: