Do all these VMs have the VMware Tools installed in the Guest OS?
If yes, you can use something like this (you can use the use the Get-VM cmdlet to select a subset of VMs if needed)
Get-VM | Restart-VMGuest -Confirm:$false
If the VMs, or some of them, do not have the VMware Tools installed, you will have to use a remote method linked to the Guest OS.
But this requires certain settings in the Guest OS.
For example, to use a remote PowerShell command, you need to have PS remoting to be configured and allowed.