A compiler for AP-Management Console Scripts