Text this: Investigation on the dynamics of Z-pinch in discharge-produced plasma sources via two-dimensional MHD simulations