The file contents will only be printed if the contents is determined to be text. The -force flag can be used to print it anyway.
Optionally the -capture flag can be used to hold the output for later, instead of immediately printing it. The captured output is then accessed from the get-captured-output
command. Alternatively either run-until-job
or wait-for-job
, with the -capture flag, can be used.
The target-file must be a readable file on the target system. The path is relative to this agent handle's current working directory, unless it is an absolute path.