title: How to run array of Invoke-SshCommand in PowerShell script?
body: <p>I would like to run a couple of SSH commands using PowerShell <code>Invoke-SshCommand</code>. I know how to use it, but when I want to run more of them like for example <code>sudo apt-get update</code>, <code>sudo apt-get install</code> and <code>cd..</code> they do not wait for each other and it causes errors. Is there any way of getting the information whether one command was finished so I could run next?</p>