FKeyPair -how to generate a valid key pair for pak signing?

The prime number arguments must be -P= and -Q=, you’re repeating P twice. And by looking at the source code, the numbers must be given in hexadecimal (the 0x prefix is optional but the string is still treated as hexadecimal). This will prevent the executable from searching for large primes by itself which can take a really long time but it may still try to validate if they are primes indeed which can also take some time, so if you know for sure P and Q to be primes you can skip the checks completely by specifying -NoVerifyPrimes.