open current sftp server path in putty/kitty scripts

button script:

Clipboard SET cd {sourcepath|noterm|noroot} ; /bin/bash
Delete NORECYCLE FORCE QUIET FILE "D:\putty\initpath.txt"
Clipboard PASTE AS="D:\putty\initpath.txt"
cd D:\putty
D:\putty\log_with_init_path.bat

log_with_init_path.bat

@echo off
start putty.exe root@ipaddress -i private_key.ppk -m "D:\putty\initpath.txt" -t