{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":20526,"path":"integrate-applications/connector-powershell-methods.md","title":"PowerShell connector methods","bundle":null,"doc_type":null,"release":"australia","body":"\n# PowerShell connector methods\n\nThe PowerShell connector methods act as interfaces with the Microsoft PowerShell to send requests and get responses in the RPA Desktop Design Studio.\n\n## CreateShell\n\nActs as an interface to pass your inputs in the form of commands and scripts. The CreateShell method is the first method you must use.\n\n## InvokeCommand\n\nRuns commands and block of scripts on local or remote computers and gets the output including errors, if any.\n\n**Note:** You must execute the CreateShell method before executing this method.\n\n-   **Input**\n\n    [Command \\(String\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n-   **Output**\n\n    [Return](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n\n## InvokeScript\n\nRuns a script on local or remote computers and gets the output.\n\n**Note:** You must execute the CreateShell method before executing this method.\n\n-   **Input**\n\n    [Script](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n-   **Output**\n\n    [Return](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n\n## PSObjectToString\n\nAccepts PowerShell objects from other methods or components and converts them to a string.\n\n-   **Inputs**\n\n    [PSObject](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n\n## GetValuesByProperty\n\nAccepts a PowerShell object and gets the values of the various properties.\n\n-   **Inputs**\n\n    [PSObject](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n-   **Output**\n\n    [Return \\(String\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n\n## Disconnect\n\nDisconnects the connection to the PowerShell.\n\n## Serialize\n\nAccepts a PowerShell object and returns the object as a string.\n\n-   **Input**\n\n    [PSObject](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n-   **Output**\n\n    [Return \\(String\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/parameters-powershell-connectors.md)\n\n\n**Parent Topic:**[ITSM connector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/itsm.md)\n\n"}}