You need to use the 'Copy-VMGuestfile cmdlet'
NAME
Copy-VMGuestFile
SYNOPSIS
Copies a file from and to the guest OS of the specified virtual machines using VMware Tools.
-------------- Example 1 --------------
C:\PS>Copy-VMGuestFile -Source c:\text.txt -Destination c:\temp\ -VM VM -GuestToLocal -HostUser root -HostPassword pass1 -GuestUser user
ssword pass2
Copies the text.txt file from the guest OS system to the local Temp directory.