Investigating the hidden-charm and hidden-bottom pentaquark resonances in scattering process