FTP Access through Postman

Scenario: Posting one request to run API through postman and the file gets created at the FTP server. I am checking the existence of a file on the FTP server location using the WinScp application.

Output: The requested run is successful and the file is created on the FTP server on a specified path. We check this using WinScp.

Issue: I am trying to write a test case to check after a successful post, to see if the file is successfully created at the FTP server. How do we write a test case (script) to check this is on WinScp?

Can anyone help me on how to write a script: to connect to the FTP server via Postman and check for the file existence?