Exe Output for PHP inquiry

I want to buy this program EXE Output for PHP, not sure if it will do what I need to accomplish? Here briefly I can describe want I like to do. I have made a free website with four pages, and the fifth one would be - after successful payment page, where I would need your program, so the last page is post payment page, which I will include into my square link after successful payment. I already created a My SQL database with a table on my PHP My Admin localhost on my SSD drive.
To make it brief, I have a visual studio windows form application in C# which requires a licensing feature.
When the user clicks on “Buy” button it will open up the website link, and after the successful payment it will redirect to a certain webpage URL.
There I would want to use your program to do a few tasks, where originally, I thought to use PHP language to do the same.
Getting PC ID, like PC ID = CPU + Motherboard ID.
Then generate a random license key for target user machine. Then inserting into a PHP my admin database, like PC ID, Name, email and a randomly generated a license key. And displaying it on a screen a license key as well. Also, maybe emailing automatically a license key to a provided email address.
Can it be done with your program? Where should I create those functions, how to integrate? Can you direct me what can be done. I never have done this before, so that is why I am asking all of these. Let me know, thanks in advance.