I have a script that uses invoke-request to get a remote ID string. How can I retrieve the value of instanceID and set it to (SET instanceId) within .bat script
powershell $instanceId =(Invoke-WebRequest -Uri http://169.254.169.254/latest/meta-data/instance-id).Content exit
TNKS