Hi all!
I discovered I can create a temporary folder using the New-TemporaryDirectory command in Powershell ISE, much like creating a temporary file using New-TemporaryFile. The New-TemporaryDirectory works properly(creates a temporary folder and stores desired
files, etc) when run in the ISE but not when I run my program containing it on the cmd. I get this error message:
New-TemporaryDirectory : The term 'New-TemporaryDirectory' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again
Does anyone know another way in powershell that allows me to create a temporary directory - or knows the error here?
Thanks.