The perl command in material studio script

I Try to use some stand perl commands in the material studio script envirment. For example, I want to make a new directory. Then I write the

  mkdir "new_dir", 0751;

in a script. But this does not work (the same to other perl commands rmdir, etc). Could you please tell me why?