# Invoke Powershell Activity - Throws Module SSHSessions Error

**URL:** <https://forum.uipath.com/t/invoke-powershell-activity-throws-module-sshsessions-error/227655>\
**Category:** Studio\
**Created:** [June 1, 2020, 9:57am UTC](https://forum.uipath.com/t/invoke-powershell-activity-throws-module-sshsessions-error/227655 "2020-06-01T09:57:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [June 1, 2020, 9:57am UTC](https://forum.uipath.com/t/invoke-powershell-activity-throws-module-sshsessions-error/227655/1 "2020-06-01T09:57:23Z")

</div>

Hello all,

I am working on a Powershell script to integrate with UiPath, As the script runs fine in Powershell editor, but when i am placing in powershell activity it is throwing below error

![image](https://global.discourse-cdn.com/uipath/original/3X/4/6/463f909a3cac3e171563e231b2bc31595436904d.png)

Please share me any inputs to resolve this

@loginerror @Pablito @Palaniyappan

Thanks

---

<div class="post-metadata">

**Author:** ![Pablito](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pablito/32/385495_2.png) [@Pablito](https://forum.uipath.com/u/Pablito)\
**Post date:** [June 2, 2020, 7:11am UTC](https://forum.uipath.com/t/invoke-powershell-activity-throws-module-sshsessions-error/227655/2 "2020-06-02T07:11:40Z")

</div>

Hi @Srini84,  
Based on message seems that your script requires user input during execution what is not possible using Studio. Instead you can use activities like `input` dialog and pass it’s output variable as argument to powershell invoked in the process.
