Try the Sunroof Position Calibration. This is from 2005, so it may or may not work for your 2013:
STANDARD PROCEDURE--SUNROOF POSITION CALIBRATION
Press the power sunroof switch (Open, Closed, and Vent). If no movement occurs when either the open switch or closed switch is pressed, but the system does move when the vent button is pressed and held, the system is not calibrated. Perform the following procedure to position calibrate the power sunroof system.
1. Turn the ignition to the RUN position.
2. Press the vent button on the power sunroof switch and hold until the sunroof glass panel has moved to the full vent position and the motor movement has stopped for at least 1 second.
3. Press the close switch on the power sunroof switch and hold for a moment (at least 100ms) and release. The sunroof glass panel should continue travel to the full close position.
4. Verify proper system operation.