I was making a script to cancel and repost auctions and needed a way to turn around at the mail box. API doesn't allow any movement, but here is a workaround that I have used. It utilizes SaveView and SetView functions.
1. Turn you camera to face your character. For the perfectly straight view go to a hairdresser, sit in the chair and move your camera away to a normal distance.
2. /run SaveView(5) It will save your current position to preset view #5
3. Make a macro with /run SetView(5)
4. Now when you need to turn around, use the macro and press both mouse keys to run in the opposite direction.
Hope somebody finds it useful!