Easy way to open up a folder window while in a command line prompt. This opens a window to wherever you are, in case.

C:\>mkdir tempdir
C:\>cd tempdir
C:\tempdir>explorer .

On macOS, you can just do this

$ mkdir tempdir
$ cd tempdir
$ open .