I am trying to find a way to store the result of Get-ChildItem to an external variable that I can use in another application.
Is this even possible? Every thread I have followed has resulted in failure.
Please help!
Example:
powershell.exe -command "Get-ChildItem -Path \\atl0wencd001.cead.prd\e$\EncoreNuGet\Packages\Insco.FicoRMA.Bin.&NUGET_ENV#.*.nupkg | Sort-Object LastAccessTime -Descending | Select-Object -First 1 |