It is because you did wrong

.
First, your TempPoint variable is a rect variable, not a point : change it.
After that, you can replace your 3 lines with theses :
-
Set TempPoint = (Center of rect 011)
-
Item - Move (Last created item) to TempPoint
-
Custom script: call RemoveLocation( udg_TempPoint )
And it should work.