title: Running a powershell script through Psexec
body: <p>new to the forum.
  I've been trying to run a PowerShell script from sccm package via psexec command but can't seem to get it to work, possibly been asked before but I give it a go here. not sure if its pathway issues, permission issues or other input issues.</p>
  
  <p>Tried running this:</p>
  
  <pre><code>psexec -i \\server\packages$\app\folder with space\deploy-script.ps1
  </code></pre>
  
  <p>This gives the error:</p>
  
  <blockquote>
    <p>"couldn't access server\packages$\app\folder with space" 
    <br>"Connecting
    to server..."</p>
  </blockquote>
  
  <p>Tried to put "pathway" as well but also doesn't work.
  I've been running this with admin elevated rights still no go.</p>
  
  <pre><code>psexec -i \\server\packages$\app\folder with space\deploy-script.ps1
  </code></pre>
  
  <p>Initiates script installation.</p>