I have Server1 and Server2.
On Server 2 I have a simple PowerShell.ps1 file that creates a text file on shared drive:
New-Item -path \\\\MyShared\\Dri