Hello,
-Copy-VMGuestFile cmdlet. So, that would be something like:
## get the creds to use for connecting to VM guest
$credMyGuestCred=Get-CredentialsomeUser
## copy file from local machine to D: drive on guest
Copy-VMGuestFile-VMmyVM0-LocalToGuest-Sourcec:\temp\mySourceFile.pdf-Destinationd:\newFileName.pdf-GuestCredential$credMyGuestCred
You can populate that value for the GuestCredential param as you please -- inline or whatnot. Anyway, how does that do for you™?