You didn’t say what exactly isn’t working. Does the code not run at all, run but give you an error msg, run but not do what is expected? If it runs, where does it die – the shell cmd?
Is the drive e:\sftp a mapped drive? Is there security on the directory?