Hi Heera,
using the Set-VMHostNetwork cmdlet you have to specify the IP addresses of the primary and secondary DNS servers. There is no way to specify only the secondary DNS server. E.g.:
Get-VMHost | Get-VMHostNetwork | Set-VMHostnetwork -DnsAddress "192.168.0.1","192.168.0.2" -DnsFromDhcp $false