Is there a way to provide instructions to the PAM via CLI?
I'm sure this would have a lot of advantages for a lot of people.
In my case I've created a batch to mount a TrueCrypt volume and launch PortableApps. Now I'm trying to create another to close the menu using a method equivalent to pressing the exit (not eject) button from the menu and unmount the drive.
Hoping to avoid TaskKill for this as I would prefer a more elegant option that enables the possibility of integrating a PAM data/profile in the future.