The pstacks program is not part of Stacks v2. Its functionality was replaced by gstacks. See the Stacks documentation on our website or the protocol we published: “Population Genomics Analysis with RAD, Reprised: Stacks 2” (https://link.springer.com/protocol/10.1007/978-1-0716-2313-8_7).