Write-HostKVP

Writes a KVP (i.e. adds a new one, updates the value of an existing one or deletes an existing one) from the host to a certain VM.

Add or update a KVP:

Write-HostKVP
    -VMName
    -Name
    -Value
    [-Force]

Remove a KVP:

Write-HostKVP
    -VMName
    -Name
    -Remove
    [-Force]

The -Force switch tell the cmdlet to perform an actual write operation. If the KVP is found but the -Force parameter is not specified, the cmdlet will issue a warning.