how to parse powershell output code example
Example: how to parse command value in powershell
powershell -Command "(gc $env:userprofile\.android\avd\Nexus_4_API_23.avd\config.ini) -replace 'vm.heapSize=%getRam%','%setRam%' | Out-File -encoding ASCII $env:userprofile\.android\avd\Nexus_4_API_23.avd\config.ini"