Since there isn't a command to give back AP you might give it back with items.
Like this all max items, but then only with AP. (if you're able to make these.)
So you can check the AP from players on their screenshots and then make items (or item) with that amount of AP on it.