Iām trying to use variables ($var1,$var2,$randomUser) in $IE.navigate2 commands, but they are being sent to the browser as text and not variables. Any ideas why?
$IE=new-object -com internetexplorer.application
$IE.navigate2('http://10.0.1.30:/?{"serverName":"$var1"}')
$IE=new-object -com internetexplorer.application
$IE.navigate2('http://10.0.1.30/?{"folder":"$var2","server":"$var1","userName":"$randomUser"}')