Commands like this usually are run from a simple button. Here's one you can copy-paste to a toolbar:
<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none">
<label>45094</label>
<icon1>#newcommand</icon1>
<function type="normal">
<instruction>@nodeselect</instruction>
<instruction>Rename FROM={filepath}* TO={filepath|..}*</instruction>
</function>
</button>
Want to learn more? Read here: