How can I make an appointment in Department for Foreigners in Mazowieckie Province Office?

You have to create your account in the inPOL portal.

The instruction how to do it is here