How to take screenshots in unattended mode

I tried to run minimize the screen but take screenshot activity did not capture any process.