|
|
@ -17,5 +17,5 @@ Then use the following command in a Scheduled Task to run the script:</p> |
|
|
|
<p>In simple cases, you can also pass the script to PowerShell directly, |
|
|
|
using the "-command" argument:</p> |
|
|
|
<div class="highlight"><pre><span></span><code># Without an underlying script, passing the command to PowerShell directly: |
|
|
|
powershell.exe -command <span class="p">&</span>{Invoke-RestMethod PING_URL} |
|
|
|
powershell.exe -Command <span class="s2">"&{Invoke-RestMethod PING_URL}"</span> |
|
|
|
</code></pre></div> |