PowerShell provides the function of the command line management system, but in general, the operator to complete a business needs a number of sets of PowerShell commands, this will be cumbersome, error rate is also higher. The operator can write PowerShell scripts to organize orders, This article describes how to use WF to organize PowerShell commands, allowing the operator to care only for specific commands, and to organize logical relationships between commands in a visual process designer
WF4.0 does not provide activity to invoke PowerShell, but can be used in Microsoft.Activities.PowerShell.Dll with Invokepowershell and Invokepowershell <T> two activity implementation call PowerShell
Microsoft.Activities.PowerShell.Dll Download
Http://www.bianceng.net/dotnet/201208/260.htm
Project Description:
WF4.0 Call PowerShell
Need to install PowerShell in the system, in this case I am using PowerShell 1.0
Introduction to PowerShell's instructions
Get system process [get-process]
To determine if a directory exists, create a directory [Test-path],[new-item]