Bear in mind that TPM requires both a BIOS flag and Windows as well. BIOS changes probably cannot be done remotely unless the motherboard supports making the change via WMI or something.
As for doing this via PS then you can use MS's TPM cmdlets. You can check the status and enable provisioning but it is unclear to me whether any of this actually enables it.
Alternatively here's a link to a script that uses WMI to enable it.