disposable SMB share and SMB file transfer

to map a share you can use ‘net use [drive letter]: \[IP]\share /user [share user name] [share passwd]’
and then to remove the mapping ‘net use [drive letter]: /delete’

if you have a PS shell like through evil-winrm obviously you will have to prefix copy, net use etc with cmd /c