User Tools

Site Tools


transformations:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
transformations:powershell [2018/01/11 20:52] – created dmitrytransformations:powershell [2018/01/11 20:58] dmitry
Line 7: Line 7:
 It is possible to send values of column to the executed PowerShell commands through the built-in **$input** variable in PowerShell, for instance: It is possible to send values of column to the executed PowerShell commands through the built-in **$input** variable in PowerShell, for instance:
  
-   $input | Sort-Object+  $input | Sort-Object
  
 Note that **$input** is an enumerator for the sequence, not the sequence itself. Note that **$input** is an enumerator for the sequence, not the sequence itself.
  
-It is also possible to insert EasyMorph parameters right into the script text, as well as capture the output sequence from the PowerShell script back to EasyMorph.+It is possible to insert EasyMorph parameters right into the script text. Just insert parameter names in curly braces. For instance: 
 + 
 +  Copy-Item "{Source file}" c:\test 
 + 
 +It's also possible to capture the output sequence from the PowerShell script back to EasyMorph. Note that the output sequence should be explicitly converted in the PowerShell script into a sequence of basic types such as //string//, //integer//, //float//, //DateTime// or //bool//. Formatted output of the standard PowerShell console is not captured.
  
 **See also** **See also**
   * Blog: [[http://blog.easymorph.com/2017/12/running-powershell-commands-in-easymorph.html|Running PowerShell commands in EasyMorph]]   * Blog: [[http://blog.easymorph.com/2017/12/running-powershell-commands-in-easymorph.html|Running PowerShell commands in EasyMorph]]
-  * [[transformations:runprogram|Run program]]+  * [[transformations:runprogram|Action: Run program]]
   * [[https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell|Installing Windows PowerShell]]   * [[https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell|Installing Windows PowerShell]]
transformations/powershell.txt · Last modified: 2021/07/17 16:26 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki