I'm trying to get a remote to mount on Windows service start and then cleanly unmount when that service is stopped or paused. I'm most of the way through debugging this, but I'm currently getting hung up on why there is inconsistent RClone behavior when launched via PowerShell Terminal vs PowerShell ISE.
Remotes mounted via PS Terminal are cleanly unmounted via CTRL-C.
Remotes mounted via PS ISE are not.
Can anyone shed some light on this for me?