Are there any widely accepted methods for an *.exe to detect if it's running as part of an ADO pipeline? The script will be running both as part of a pipeline and on workstations and should be able to determine with very high confidence where it is running, if possible.
Eg. any pre-defined variables that are meant for this (could not find) or some other pre-defined value that can be inspected?