Restore Minimized CMD Window

I have a batch script running in a minimized window. How can I conditionally restore the size of the window and bring it to the foreground?

IF EXIST "temp.txt"  (
    REM How to restore window and bring to foreground?
)