A 31-year-old man who appeared before a special court sitting after being detected with drugs, damaged a PSNI cell by writing an IRA slogan on the walls with excrement.