Create a folder in a directory.Take database Backup by executing SQL command.Below query will return a listing of all backup files in all databases on a SQL instance.
This is caused because of Where-Expression. You should only use variables in there or call methods that can be translated to SQL. First, save your Session value in a variable.