SharpUp.exe is part of the GhostPack suite of tools and is a C# port of PowerUp that will perform numerous privilege escalation checks. The following command will run all priv esc checks and store the output in a file.
Command Reference:
Output File: output.txt
SharpUp.exe > output.txt