There is a batch file that calls a Powershell script, and I've created a shortcut to that batch file inside the Windows startup folder, so the Powershell script runs every time that Windows starts up. I just want to know how my Powershell script can detect at runtime if it was called by the batch file during a windows startup event or if it was called by the batch file when a user manually ran the batch file.