A good example isThat's a funny thing about cmd.exe and its handling of quotation marks. I find something like this works ok though:
'condor_q -constraint jobstatus==1' returns those idle jobs
'condor_q -constraint MyType=="Job"' returns nothing even though the jobs (even those from previous example) have a ClassAd of MyType = "Job"