This reverts commit 334f399ee3, reversing changes made to 45a5d28bad. When testing against Windows SSH the Powershell script fails to parse the newly added if statement.
334f399ee3
45a5d28bad