xxxxxxxxxx
# Copy the file to the shared folder
Copy-Item -Path "C:\Path\To\Your\File.txt" -Destination "\\RecipientComputer\SharedFolder\"
# Send a message to the recipient computer
Send-NetMessage -ComputerName RecipientComputer -Message "Hey, I've sent you a file!" -MessageType Messenger