Could you not just simpify the script to xform -q -t -ws; (with the vertex in question selected before executing the script)