Can I have some help here?
I've been trying for three days to get this to work and I just can't figure it out.
When I load up PowerShell and put in the required text I get this error message.
PowerShell 7.2.4
Copyright (c) Microsoft Corporation.
https://aka.ms/powershellType 'help' to get help.
PS C:\Windows\System32> C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1-iwad doom2 -warp 1
C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1-iwad: The term 'C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1-iwad' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Windows\System32> C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1 -iwad doom2 -warp 1
Start-Process: C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1:31
Line |
31 | $gzdoom = Start-Process -FilePath $GzdoomPath -ArgumentList $allArgs …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| This command cannot be run due to the error: An error occurred trying to start process 'gzdoom' with working directory 'C:\Windows\System32'. The system cannot find the file specified.
Wait-Process: C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1:32
Line |
32 | Wait-Process -Id $gzdoom.Id
| ~~~~~~~~~~
| Cannot validate argument on parameter 'Id'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Get-Content: C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1:35
Line |
35 | foreach ($line in Get-Content $editorLogPath)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.log' because it does not exist.
Remove-Item: C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.ps1:68
Line |
68 | Remove-Item $editorLogPath -Force
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'C:\Users\mason\Desktop\cameraman-1.0\cameraman-1.0\editor.log' because it does not exist.
PS C:\Windows\System32>
What am I doing wrong?