$username = "superuser"
$password = "x"
$credentials = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))
Start-Process 'powershell' -Wait -Credential $credentials -ArgumentList "Start-Process 'C:\Cygwin64\usr\sbin\sshd.exe' -Verb runAs" -ErrorAction SilentlyContinue
Start-Process : Access is denied
At line:8 char:1
+ Start-Process 'powershell' -Wait -Credential $credentials -ArgumentLi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-Process], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.StartProcessCommand
Попытались также передать параметр рабочего каталога, но это не устранило проблему, какие-либо рекомендации?