Function Log-Ui-Action
(
log-ui-action < type > < name > < action > &key < id > < class > )
If called during an active unit test, logs the UI action to the
test's temporary database so that it can be queried during the unit
test's verification process. If no active unit test is present, does
nothing.