Rename an existing Workset

I need this to run in batch but i cannot understand what Kulkul said here :