Rhino 6 Rotate question

I’ve been trying to set up a macro to create an axon for me in one Alias, but I’ve seem to hit a wall. At the moment I have
"!_Rotate 0 -45 SetActiveViewport Right Shear w0,0 w0,0,1 -45 SetActiveViewport perspective"
The major flaw with it being that for that first rotate command to work, it uses the global origin, so the further the object is from the origin the greater the distance it travels. I know that using the gumball to rotate removes that problem, but there is no way to input a gumball move via the command line. Finding the center point of any object is made easy with AreaCentroid which gives the coordinates of the center as well as creating a point for those coordinates. My problem could be solved if one of these questions could be answered:
1: How do you input a gumball comand via the commandline
2: How do you set the origin of a new rotation to either the coordinates provided by the AreaCentroid tool, and/or the point created
If neither of those questions can be answered, what are my next steps toward solving this?