On the Dynamics NAV Team Blog, a tool was released named: NAVDiag.
You can use this as a tool that helps you simplify and speed up the troubleshooting.
The tool now allows you to collect diagnostics, with added examples of reading the config file, the license file and Steps Recorder.
Record Steps action will allow user to record problem steps and save the output. This is basically just a call to the built-in Windows Steps Recorder function, but still useful to have as a part of the tool. Finally, the License File action will read the license file, the specified NAV Server account has elevated permissions.
Also, if you look at the code of the tool, it has some great examples on how you can run PowerShell from Dynamics NAV 🙂
Thanks to Jasminka Thunes!