Using Powershell with Eggplant

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!

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 CommandSystem Interaction with SenseTalk | EPF Docs.
If your want to run it on the SUT via VNC/RDP please provide more information on your steps and the errors.

Greetings
Nuck

1 Like

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

1 Like

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.

With the Service Finance Company Login, you’re just a click away from managing your financing like a pro. I’ll walk you through the key points: Service Finance Company Financing Options offer tailored solutions like home improvement financing, equipment financing, and business financing, with a seamless Service Finance loan application process.