Yup.

Look in the manual for the DIR() function to enumerate the contents, the GetFileAttr() function to check if the entry is a folder and the Move command to rename it.