This may just be my lack of PowerShell knowledge, but why is it when I do something like this:
PS >$job=Get-Job
PS >$job.Name
Name-Of-My-Job
PS >echo "job Name=$job.Name"
job Name=RSJob.Name
Basically, when I try to access any property of a RSJob object inside a quoted string it prints RSJob. instead of the property value?
This may just be my lack of PowerShell knowledge, but why is it when I do something like this:
PS >$job=Get-Job
PS >$job.Name
Name-Of-My-Job
PS >echo "job Name=$job.Name"
job Name=RSJob.Name
Basically, when I try to access any property of a RSJob object inside a quoted string it prints RSJob. instead of the property value?