The intArrayRemove command (and others) I believe was added in Maya 2013 and therefore doesn't work with earlier versions of Maya... That's strange you are having issues in 2013 but not 2012? I wrote it in 2013 so it works on my end. If anyone else is having the same issue please let me know what line the error is…