It would be easy to write a Python function in such case, the input can be the original X,Y,Z values and the output the rotated X,Y,Z values. Please refer to this page on setting multiple inputs and outputs using Python in Set Column Values dialog: https://www.originlab.com/doc/python/tools/Set-Column-Values#Example_2