Thanks for clarifying. Since your goal is simply to manually issue a certificate from the same on-prem AD CS CA for a non-Intune test device, you don't need to reproduce the Intune PKCS process itself.
If the test device is domain-joined and can reach the CA, you can manually enroll using:
certlm.msc → Personal → Certificates → All Tasks → Request New Certificate → Active Directory Enrollment Policy
Select the certificate template that your Intune PKCS profile uses, assuming the test user/computer has Read and Enroll permissions on that template.
If the device is not domain-joined, another straightforward option is to generate a certificate request (.req) using certreq, submit it to the CA, then install the issued certificate. This keeps the test separate from Intune while still using your existing CA and certificate template.
The key is to use the appropriate AD CS certificate template, rather than trying to manually invoke the Intune PKCS connector.
Please don't forget to "Accept the Answer" if this information helped you. This will help us and others in the community as well.