Set Microsoft Print to PDF as default printer

Hi,
I have a requirement to make Microsoft Print to PDF as default Printer, i can do using usual studio activities, but is there any other method running in the background like invoking Javascript or .Net code or Powershell script to make Microsoft print to PDF as Default Printer?

Thanks and Regards,
Santhosh