How do I do X in PowerShell?
Many forum questions revolve around that question. In some cases the answer is that its not possible.
It might not be possible because PowerShell itself can’t do something BUT it is much more likely that there just isn’t away to do that particular action programmatically (through a script).
Its always a good idea to work out how you are going to do something before you try to figure out how you will get PowerShell to do it for you