Assign Command Output to Powershell Array
From powershell CLI;
1$container_ids=docker ps -qa
2$container_ids
In the command above, 1st line does the assignment. 2nd line prints the values. You will then have an output such as the following:
16fc00bc6a
2ba3c76ca3
3a9b4e46eb