I have tried to run and I am getting an error.
If the SQL Server Instance is USCTAPD66000\DEV01. And I saved Export-DbaScript.ps in directory C:\Users\xxx. Should the command then be
PS C:\Users\xxx> Get-DbaAgentJob -SqlInstance USCTAPD66000\DEV01 | Export-DbaScript -FilePath C:\Users\xxx\export.sql -Append
Get-DbaAgentJob : The term 'Get-DbaAgentJob' 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.
At line:1 char:1
- Get-DbaAgentJob -SqlInstance USCTAPD66000\DEV01 | Export-DbaScript - ...
- ~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Get-DbaAgentJob:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException