How can I get the return status of a command ran, while outputting any messages to out-null.
Right now I have
{command} | out-null
I would like to get the return status $? of that command though. Anyway to do that?
Thanks
How can I get the return status of a command ran, while outputting any messages to out-null.
Right now I have
{command} | out-null
I would like to get the return status $? of that command though. Anyway to do that?
Thanks