# Using Powershell with Eggplant

**URL:** <https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709>\
**Category:** Eggplant Functional\
**Created:** [January 26, 2026, 6:40pm UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709 "2026-01-26T18:40:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@Bill](https://forums.eggplantsoftware.com/u/Bill)\
**Post date:** [January 26, 2026, 6:40pm UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709/1 "2026-01-26T18:40:42Z")

</div>

Hello,

I need to run about 4 cmdlets in Powershell from functional. I am passing variables into the cmdlets without issue. I am having trouble passing the cmdlets line by line into Powershell with something Powershell understands.

If I take the 4 lines with hard coded values and copy/paste into powershell and hit return, I have no issue. If I use Typetext to pass the cmdlets line by line, I get any variety of errors.

Is there a way to send cmdlets from Eggplant in a way Powershell understands?

Thanks!

---

<div class="post-metadata">

**Author:** ![NuckChorris](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/n/e19b73/32.png) [@NuckChorris](https://forums.eggplantsoftware.com/u/NuckChorris)\
**Post date:** [January 29, 2026, 8:48am UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709/2 "2026-01-29T08:48:05Z")

</div>

Hi Bill, I am not quite sure if you want to run the commands on your local Computer or on the SUT. For the local computer you can use the Shell Command[System Interaction with SenseTalk | EPF Docs](https://docs.eggplantsoftware.com/epf/stk-system-interaction/#shell).  
If your want to run it on the SUT via VNC/RDP please provide more information on your steps and the errors.

Greetings  
Nuck

---

<div class="post-metadata">

**Author:** ![Bill](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@Bill](https://forums.eggplantsoftware.com/u/Bill)\
**Post date:** [January 29, 2026, 12:49pm UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709/3 "2026-01-29T12:49:41Z")

</div>

Thanks. I was able to resolve this issue with semicolons at end of line for each commandlet.

---

<div class="post-metadata">

**Author:** ![Gene742Nelson](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@Gene742Nelson](https://forums.eggplantsoftware.com/u/Gene742Nelson)\
**Post date:** [March 26, 2026, 1:49pm UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709/4 "2026-03-26T13:49:56Z")

</div>

Instead of sending cmdlets line by line with Typetext, package them together in a script or send the whole block at once with proper \r\n endings so PowerShell interprets each command correctly. Typetext often breaks syntax when used line‑by‑line, so the most reliable method is to run a prepared .ps1 script or pass the full command block in one go.

---

<div class="post-metadata">

**Author:** ![emm022stone](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@emm022stone](https://forums.eggplantsoftware.com/u/emm022stone)\
**Post date:** [June 18, 2026, 12:46pm UTC](https://forums.eggplantsoftware.com/t/using-powershell-with-eggplant/14709/6 "2026-06-18T12:46:14Z")

</div>

Thanks a very insightful reply
