Tutorial by Examples

Get the current date and time. public class Program { static void Main() { // create empty pipeline PowerShell ps = PowerShell.Create(); // add command ps.AddCommand("Get-Date"); // run command(s) Console.WriteLine(&quot...

Page 1 of 1