批量声明一个变量并在一行中使用它

Declaring a variable in batch and using it in one line

是否可以声明一个变量并在同一行中使用它? 例如(这不起作用):

set foo="bar" && echo %foo%

打印bar.

set "foo=bar" && call echo %^foo%