Move getCEStatus to remote script

Move getCEStatus to remote script