CmdID / PowerShell / Cmdlets / Enable
Enable-VMTPM
Enables TPM functionality on a virtual machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts to run the cmdlet.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies a user account that has permission to perform this action.-PassthruReturns an object representing the item with which you are working.-VMSpecifies the virtual machine for which to enable TPM.-VMNameSpecifies the name of the virtual machine for which to enable TPM.-WhatIf, -wiShows what would happen if the cmdlet runs.