Unfortunately, you cannot access PowerShell features through a variable.
You can use the Rest Client to connect to TFS and read the assembly agent, as well as the "Assembly Definition" , to read the configured values. This will require access to the OAuth token, which can be configured using the checkbox on the build definition configuration page.
source
share