<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Powershell script to run commands remotely via TRIGGERcmd]]></title><description><![CDATA[<p dir="auto">Here's an example Powershell script you could use to call the TRIGGERcmd API to run a remote command:</p>
<pre><code>$postdata = @{
    trigger='notepad'
    computer='Laptop'
    # params='optionalparameter.txt'
}

$token=Get-Content ~\.TRIGGERcmdData\token.tkn

$headers = New-Object "System.Collections.Generic.Dictionary&lsqb;&lsqb;String],[String&rsqb;&rsqb;"
$headers.Add("authorization", "Bearer " + $token)

$json = $postdata | ConvertTo-Json
$response = Invoke-RestMethod 'https://www.triggercmd.com/api/run/triggerSave' -Method Post -Body $json -ContentType 'application/json' -Headers $headers</code></pre>
]]></description><link>https://www.triggercmd.com/forum/topic/204/powershell-script-to-run-commands-remotely-via-triggercmd</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 00:01:20 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/204.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jul 2018 22:38:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Powershell script to run commands remotely via TRIGGERcmd on Wed, 01 Nov 2023 01:26:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> como posso efetuar este comando o powershel?</p>
<p dir="auto">start microsoft-edge:<a href="https://www.xbox.com/pt-BR/play/launch/forza-horizon-5-edi%C3%A7%C3%A3o-padr%C3%A3o/9NKX70BBCDRN" rel="nofollow ugc">https://www.xbox.com/pt-BR/play/launch/forza-horizon-5-edição-padrão/9NKX70BBCDRN</a></p>
<p dir="auto">$wshell = New-Object -ComObject wscript.shell;</p>
<p dir="auto">$wshell.AppActivate('edge')</p>
<p dir="auto">while ($true)<br />
{<br />
Sleep 2<br />
$wshell.SendKeys('{f11}')<br />
exit<br />
}</p>
<p dir="auto">exit</p>
]]></description><link>https://www.triggercmd.com/forum/post/7486</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7486</guid><dc:creator><![CDATA[Viniciusmbs]]></dc:creator><pubDate>Wed, 01 Nov 2023 01:26:48 GMT</pubDate></item></channel></rss>