One thing which isn't great: the 'get-PegaNode' function works as a 'helper' function for 'get-pegaAgent' - but it returns a fairly complex object, rather than something you can just easily work with in Powershell. (See how 'get-PegaAgent' actually returns a sub-set of the returned JSON for instance).
Screenshot showing 'out-gridview':
Note - the output of GET-pegaAgent is such that you can use it to do useful Powershell stuff like:
get-pegaAgent|where-object -Property status -eq "Stopped"|format-table