I have this snippet of code:
PowerShell ps = PowerShell.Create();
var ipAddress = target_ip.Text;
var padName = pad_name.Text;
txtLogs.AppendText($"Initializing bootstrapping process for {padName}");
ps.AddCommand($"knife bootstrap windows winrm.......
This command works find when typing it in normally in the powershell window. When I do this via C#, it says the command isn't recognized. What else do I need to do?