Update a Scheduled Task Action Argument using Powershell 4.0
<p>Does anyone know how to update the <strong>Arguments</strong> of a Scheduled Task Action using PowerShell?</p>

<p>Here is how I have been told to update the Action, thanks to <a href="https://stackoverflow.com/users/2215029/richard">@Richard</a> 's answer in another question.</p>

<pre><code>$Action = New-ScheduledTaskAction -Execute "PowerShell.exe"
Set-ScheduledTask -TaskName "YourTaskName" -Action $Action
</code></pre>

<p>What do I need to add to this so I can also change the Argument and I suppose whilst we are here, the Start In option as well?</p>