*If i pass Foo(staging) as the site name, this command will not work.*
Not sure why it won't work, anyway it's not the right thing to do for this command.

*If i pass foo as name and 1 slot as staging*
This will only work if you have exactly 2 slots and one of them is named "staging"