I'm newish to Powershell and got bits of this code off the internet. I thought that using a Foreach-Object and Get-ChildItem together would automatically terminate my loop after the last file was sent, but unfortunately it appears the script is still t
↧