Re: Correct syntax with privatekey=
This is the correct syntax:
Though you actually need no quotes in this case, as there's no space in either argument.
open "sftp://username@10.10.10.10/" -privatekey="D:\SFTP\Prod\ServerKey\private.ppk"
Though you actually need no quotes in this case, as there's no space in either argument.