Powershell is able to keep objects as they are even when calling external scripts but I haven't found a reliable way to detect from the script whether it's running within powershell (to output a *System.IO.FileInfo*) or not (to output a filename):mito_weary:
