Is this still the best way for an SFTP experience monitor?
https://stackoverflow.com/questions/8556241/call-multiple-commands-from-powershell-e-g-psftp
It is functional but no longer the best available approach. More capable, maintainable, and supportable options exist today. Posh-SSH is a mature, actively maintained PowerShell module that provides native SFTP/SSH capabilities without any external binary dependency.
Another option is SAM Component Monitor Using WPM (If Licensed). If you have WPM, a synthetic transaction can be constructed that exercises an SFTP endpoint via a custom script playback. This provides richer charting and alerting integration natively within Orion. However, WPM is primarily HTTP/HTTPS oriented and SFTP requires the script monitor path regardless.