How to generate a register link outside S2Member

Hello,
Is it possible to generate a register link (get by PayPal® Member Registration Access Links in Paypal Button option) by using a PHP script outside S2Member?
I found the function register_link_gen but I don't know how to use it outside S2Member administration
Thanks
Is it possible to generate a register link (get by PayPal® Member Registration Access Links in Paypal Button option) by using a PHP script outside S2Member?
I found the function register_link_gen but I don't know how to use it outside S2Member administration
Thanks