The ErrorLevel is equal to -1 when the volume is crypted
Your can do the following command for exemple to uncrypte the volume :
manage-bde -status c: -p || manage-bde -unlock c: -RecoveryPassword "Key-Key..."