Pesel is issued ex-official after registration or if a foreigner cannot register but needs to PESEL submits an application for its issuance
OBTAIN A PESEL NUMBER – A SERVICE PROVIDED TO FOREIGNERS :
https://www.gov.pl/web/gov/uzyskaj-numer-pesel--usluga-dla-cudzoziemcow-en