I am writing some cmdlets , that need to do some extra things if they are being called from the context of a job or RunSpace ?
If these cmdlets are not running from a Job or RunSpace the progress and status is on the console. But if they are running in the context of a Job or RunSpace , that is reported through a file. Instead of asking the user to do something else, I want to auto detect this case.