I had to resort to using cyberduck which I don’t like as much because I wanted it to be seamless now the user has to see the script run rather than it just run in the background.
I think the deal is that there are different installs of curl one that supports sftp and one that doesn’t and apple decided on the later I think I could just reinstall curl but thats a bit beyond my scale of comfortable.