proxb / PoshRSJob

Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
MIT License
541 stars 87 forks source link

Printing RSJob properties #203

Open kevin-james-sp opened 4 years ago

kevin-james-sp commented 4 years ago

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?

copdips commented 4 years ago

$($job.Name)