PowerShell Tail From Temp File Containing Date
$currentDate = Get-Date -Format "yyyy-MM-ss";
# The file is in the parent temp directory, not the user specific temp directory
$TailFilePath = $env:TEMP + "\..\$currentDate process log usage.txt";
Get-Content -Path $TailFilePath -Wait -Tail 15;
Set the PowerShell Window Title
$host.ui.RawUI.WindowTitle = "My Useful Script is Running " + $MyInvocation.MyCommand.Path;
Source:
https://www.tutorialspoint.com/how-to-get-the-path-of-the-currently-executing-script-in-powershell
Shell Command to List Path To Files
If you need a list of full paths to the files in the current directory use the readlink command:
readlink -r *