What exactly is the problem here because P2PKH is a very straight forward script and you don't need to do anything special in order to spend your coins
if you actually have the private key. Just import that key into any popular wallet like Electrum and spend your coins!
If you don't have the private key...
• Correct the OP_EQUALVERIFY condition
You'd need to find a random 256-bit private key that produces a public key that can produce the same 160-bit hash. This kind of collision is impossible to find.
Don't waste your time and others'.