title: Invoke-Command write file to parent machine
body: <p>I have a script that connects to a remote machine using <code>Invoke-Command</code> and then runs a script block. This all works fine, however I would like to know if its possible to write a log file on to the parent machine. Due to firewalling on the servers the parent can connect to the child, but the child cannot connect to the parent.</p>
  
  <p>At the moment when I use <code>Out-File</code> it creates that file on the server that I am connected to. I would like to find a way to create that file, and append to it on the server that I am connecting from.</p>