title: I have a issue with Powershell and task schedule
body: <p>Hello in My Windows Server 2012 i was configuring a task schedule to run a Powershell file that operate something inside the Microsoft VMM. 
  It was working perfect,</p>
  
  <p><strong>Action 1-</strong> Running the command</p>
  
  <p><strong>Action 2-</strong> Deleting the file</p>
  
  <p>Now i imported this task into Windows 2016 after i Upgrade the Windows and its not working its only run the file but delete is not working only the run work and if i arranged the actions and make the delete first its working without any problem, There is something preventing the file from delete action.</p>
  
  <p>This is my Task Schedule Config</p>
  
  <p><strong>General Tab:</strong></p>
  
  <p>[*] run whether user logged in or not</p>
  
  <p>Configure for [ Windows Vista, Windows Server 2008 ]</p>
  
  <p>[*] run with highest privileges </p>
  
  <p><strong>Actions:</strong></p>
  
  <p>[1] First action that run the file</p>
  
  <p><em>Action:</em> Start a program</p>
  
  <p><em>Program:</em> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</p>
  
  <p><em>Argument:</em> .\*.ps1</p>
  
  <p><em>Start In:</em> E:\command\Fast_Commands</p>
  
  <p>[2] Second action that delete the file</p>
  
  <p><em>Action:</em> Start a program</p>
  
  <p><em>Program:</em> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</p>
  
  <p><em>Argument:</em> Remove-Item ".\*.ps1"</p>
  
  <p><em>Start In:</em> E:\command\Fast_Commands</p>
  
  <p>==============</p>
  
  <p>Last thing when i choose [[*] run only when user is logged in] its working without any problem and all actions is done, Iam sorry if something not cleared i wish i could know the problem and thanks in advance.</p>