I came with this code to get the permissions of a file that to be put as a parameter.
foreach ($arguments in $args) { if (Test-Path $arguments) { #To see