Okay - New to Powershell
Here is good reference to start with.
https://www.sapien.com/books_training/Windows-PowerShell-4
--------url works great
Yeah, but it's not a url. It a UNC path to a file. That's not something that you can use Invoke-WebRequest against. A url should be something like "HTTP://SiteName/Folder/SomeName". Not "\10.50.11.41\APFMFN\".
--------dest works great
It also is a UNC path. That's what the leading "\" indicates.
Download it to a folder maintaining the file name (I can't seem to get this)
Invoke-WebRequest requires a url. That needs to start with HTTP:// or HTTPS://. If you have a UNC path you need to use Copy-Item because you are using SMB (network shares).
copy-item -Path $url -Destination $dest
Rename the source file by adding a .processed to the file name (no clue how to do this)
Just use Rename-Item.
$NewName = $url + ".processed" # $url contains a UNC path, not a real url.
Rename-Item -Path $url -NewName $NewName