There is a command:
whoami / USER
I need to parse the username and SID, i.e. there must be a string containing it. There is an option to output the result in CSV format (whoami / USER / FO CSV), only here Import-CSV accepts the file name, not the string. What possible solutions exist for this task?