Use plpgsql, like this:
do $$
declare schemaname text;
begin
for schemaname in select schema_name
from information_schema.schemata
where schema_name like 'pm\_%'
loop
execute 'drop table if exists ' || quote_ident(schemaname) || '.tablename';
end loop;
end $$;