Re: How to assign the result of a 'session.ExecuteCommand' in a variable using powershell script
Perfect! Thanks Martin
$var2 = $session.ExecuteCommand($var1)
Write-Host $var2.Output
$var1="remote command1"
$session.ExecuteCommand($var1)
$session.ExecuteCommand($var1)
into a variable(say $var2
), is there an option using WINSCP powershell?
CommandExecutionResult $var2=$session.ExecuteCommand($var1)