Hello i have powershell command that looks like this.
$result = Add-SPOSiteScript -Title "Create customer tracking list" -Content $site_script -Description "Creates list for tracking customer contact information" | Out-String
And output like this
Id : xxx69add-xxd1-xx43-xxba-xxcd2fac8790
Title : Create customer tracking list
Description : Creates list for tracking customer contact information
Content : xxx
Version : 0
IsSiteScriptPackage : False
What I want to do is to take Id somehow from it but I don't know-how. I don't know how to output this as an array so i can use $result[0]
or any other way how to extract it.
Thanks for any help.